Klasse MockAdapterManagerImpl
java.lang.Object
org.apache.sling.testing.mock.sling.MockAdapterManagerImpl
- Alle implementierten Schnittstellen:
org.apache.sling.api.adapter.AdapterManager
public class MockAdapterManagerImpl
extends Object
implements org.apache.sling.api.adapter.AdapterManager
This is a copy of org.apache.sling.adapter.internal.AdpaterManagerImpl from Sling Adapter 2.2.0,
with all calls to SlingAdaptable.setAdapterManager/unsetAdapterManager disabled, because this would
break the
ThreadsafeMockAdapterManagerWrapper concept.
Additionally the reference to PackageAdmin is disabled.-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.sling.api.adapter.AdapterManager
SERVICE_NAME -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidbindAdapterFactory(org.apache.sling.api.adapter.AdapterFactory factory, org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Bind a new adapter factory.<AdapterType>
AdapterTypegetAdapter(Object adaptable, Class<AdapterType> type) Returns the adaptedadaptableornullif the object cannot be adapted.protected voidunbindAdapterFactory(org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Unbind a adapter factory.protected voidupdatedAdapterFactory(org.apache.sling.api.adapter.AdapterFactory factory, org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Modify a adapter factory.
-
Konstruktordetails
-
MockAdapterManagerImpl
public MockAdapterManagerImpl()
-
-
Methodendetails
-
getAdapter
Returns the adaptedadaptableornullif the object cannot be adapted.- Angegeben von:
getAdapterin Schnittstelleorg.apache.sling.api.adapter.AdapterManager- Siehe auch:
-
bindAdapterFactory
protected void bindAdapterFactory(org.apache.sling.api.adapter.AdapterFactory factory, org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Bind a new adapter factory. -
unbindAdapterFactory
protected void unbindAdapterFactory(org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Unbind a adapter factory. -
updatedAdapterFactory
protected void updatedAdapterFactory(org.apache.sling.api.adapter.AdapterFactory factory, org.osgi.framework.ServiceReference<org.apache.sling.api.adapter.AdapterFactory> reference) Modify a adapter factory.
-