public abstract class AbstractComponentAdapter<T> extends Object implements ComponentAdapter<T>, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractComponentAdapter(Object componentKey,
Class<T> componentImplementation)
Constructs a new ComponentAdapter for the given key and implementation.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTypeCompatibility() |
Class<T> |
getComponentImplementation()
Retrieve the class of the component.
|
Object |
getComponentKey()
Retrieve the key associated with the component.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentInstance, isSingletonprotected AbstractComponentAdapter(Object componentKey, Class<T> componentImplementation) throws ContainerException
componentKey - the search key for this implementationcomponentImplementation - the concrete implementationContainerException - if the key is a type and the implementation cannot be assigned to.public Object getComponentKey()
getComponentKey in interface ComponentAdapter<T>public Class<T> getComponentImplementation()
getComponentImplementation in interface ComponentAdapter<T>protected void checkTypeCompatibility()
throws ContainerException
ContainerExceptionpublic String toString()
toString in class ObjectObject.toString()Copyright © 2018 eXo Platform SAS. All Rights Reserved.