public class AnnotatableInvocationHandler extends Object implements Annotatable
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
Logger.
|
protected AbstractService<?> |
service |
Constructor and Description |
---|
AnnotatableInvocationHandler(AbstractService<?> service,
String propName,
String navPropName,
EntityInvocationHandler entityHandler,
AbstractStructuredInvocationHandler targetHandler) |
protected static final org.slf4j.Logger LOG
protected AbstractService<?> service
public AnnotatableInvocationHandler(AbstractService<?> service, String propName, String navPropName, EntityInvocationHandler entityHandler, AbstractStructuredInvocationHandler targetHandler)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Map<Class<? extends AbstractTerm>,Object> getAnnotations()
public void addAnnotation(Class<? extends AbstractTerm> term, Object value)
addAnnotation
in interface Annotatable
public void removeAnnotation(Class<? extends AbstractTerm> term)
removeAnnotation
in interface Annotatable
public Object readAnnotation(Class<? extends AbstractTerm> term)
readAnnotation
in interface Annotatable
public Collection<Class<? extends AbstractTerm>> readAnnotationTerms()
readAnnotationTerms
in interface Annotatable
protected EdmEnabledODataClient getClient()
protected Context getContext()
protected boolean isSelfMethod(Method method)
protected Object invokeSelfMethod(Method method, Object[] args) throws Throwable
Throwable
protected ComplexType<?> getComplex(String name, ClientValue value, Class<?> ref, EntityInvocationHandler handler, URI baseURI, boolean collectionItem)
protected boolean isDeleted(EntityInvocationHandler handler)
protected <S extends EntityType<?>> void deleteEntity(EntityInvocationHandler handler, URI entitySetURI)
protected static URIBuilder buildEntitySetURI(Class<?> ref, AbstractService<?> service)
protected static URIBuilder buildEntitySetURI(String entitySetName, AbstractService<?> service)
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.