|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.adapter.internal.AdapterManagerImpl
@Service @Properties(value={@Property(name="service.description",value="Sling Adapter Manager"),@Property(name="service.vendor",value="The Apache Software Foundation")}) @Reference(name="AdapterFactory", referenceInterface=org.apache.sling.api.adapter.AdapterFactory.class, cardinality=OPTIONAL_MULTIPLE, policy=DYNAMIC) public class AdapterManagerImpl
The AdapterManagerImpl
class implements the
AdapterManager
interface and is registered as a service for that
interface to be used by any clients.
Constructor Summary | |
---|---|
AdapterManagerImpl()
|
Method Summary | ||
---|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
Activate the manager. |
|
protected void |
bindAdapterFactory(org.osgi.framework.ServiceReference reference)
Bind a new adapter factory. |
|
protected void |
deactivate(org.osgi.service.component.ComponentContext context)
Deactivate |
|
|
getAdapter(java.lang.Object adaptable,
java.lang.Class<AdapterType> type)
Returns the adapted adaptable or null if
the object cannot be adapted. |
|
protected void |
unbindAdapterFactory(org.osgi.framework.ServiceReference reference)
Unbind a adapter factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdapterManagerImpl()
Method Detail |
---|
public <AdapterType> AdapterType getAdapter(java.lang.Object adaptable, java.lang.Class<AdapterType> type)
adaptable
or null
if
the object cannot be adapted.
getAdapter
in interface org.apache.sling.api.adapter.AdapterManager
AdapterManager.getAdapter(java.lang.Object, java.lang.Class)
protected void activate(org.osgi.service.component.ComponentContext context)
context
- Component contextprotected void deactivate(org.osgi.service.component.ComponentContext context)
context
- Not usedprotected void bindAdapterFactory(org.osgi.framework.ServiceReference reference)
protected void unbindAdapterFactory(org.osgi.framework.ServiceReference reference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |