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)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
adapter
- 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 AdaptableService
public Object invokeAdapter(MethodInvocation invocation, Object[] args) throws NoSuchAdapterException, InvocationTargetException, IllegalAccessException
invokeAdapter
in interface AdaptableService
NoSuchAdapterException
InvocationTargetException
IllegalAccessException
Copyright © 2013 Nuxeo SA. All Rights Reserved.