public class AdaptableServiceImpl extends Object implements AdaptableService
| Constructor and Description |
|---|
AdaptableServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class
associated with this object.
|
boolean |
hasAdapter(Class<?> adapter) |
Object |
invokeAdapter(MethodInvocation invocation,
Object[] args) |
public <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.getAdapter in interface Adaptableadapter - the adapter class to look upnull if this object does not
have an adapter for the given classpublic boolean hasAdapter(Class<?> adapter)
hasAdapter in interface AdaptableServicepublic Object invokeAdapter(MethodInvocation invocation, Object[] args) throws NoSuchAdapterException, InvocationTargetException, IllegalAccessException
invokeAdapter in interface AdaptableServiceNoSuchAdapterExceptionInvocationTargetExceptionIllegalAccessExceptionCopyright © 2014 Nuxeo SA. All rights reserved.