public class Service2Impl extends AdaptableServiceImpl implements Service2
Constructor and Description |
---|
Service2Impl(Service1 s1) |
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.
|
void |
m2() |
hasAdapter, invokeAdapter
public Service2Impl(Service1 s1)
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class AdaptableServiceImpl
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classCopyright © 2011 Nuxeo SA. All Rights Reserved.