Package org.apache.olingo.ext.proxy
Class AbstractService<C extends EdmEnabledODataClient>
java.lang.Object
org.apache.olingo.ext.proxy.AbstractService<C>
- Type Parameters:
C
- actual client class
Entry point for proxy mode, gives access to entity container instances.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractService
(String compressedMetadata, String metadataETag, ODataServiceVersion version, String serviceRoot, boolean transactional) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of classes which are allowed for deserialization.
By default, only classes from the "org.apache.olingo" package are allowed.abstract Class<?>
getComplexTypeClass
(String name) <T> T
getEntityContainer
(Class<T> reference) Return an initialized concrete implementation of the passed EntityContainer interface.abstract Class<?>
getEntityTypeClass
(String name) abstract Class<?>
getEnumTypeClass
(String name) abstract Class<? extends AbstractTerm>
getTermClass
(String name) boolean
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AbstractService
protected AbstractService(String compressedMetadata, String metadataETag, ODataServiceVersion version, String serviceRoot, boolean transactional)
-
-
Method Details
-
getEntityTypeClass
-
getComplexTypeClass
-
getEnumTypeClass
-
getTermClass
-
getClient
-
getContext
-
isTransactional
public boolean isTransactional() -
getPersistenceManager
-
getEntityContainer
public <T> T getEntityContainer(Class<T> reference) throws IllegalStateException, IllegalArgumentException Return an initialized concrete implementation of the passed EntityContainer interface.- Type Parameters:
T
- interface annotated as EntityContainer- Parameters:
reference
- class object of the EntityContainer annotated interface- Returns:
- an initialized concrete implementation of the passed reference
- Throws:
IllegalArgumentException
- if the passed reference is not an interface annotated as EntityContainerIllegalStateException
-
getAllowedClasses
Returns a set of classes which are allowed for deserialization.
By default, only classes from the "org.apache.olingo" package are allowed. Subclasses should override this method if they expect other classes to be deserialized.- Returns:
- A set of classes which are allowed for deserialization.
-