Package org.exoplatform.container
Class InstanceComponentAdapter<T>
- java.lang.Object
-
- org.exoplatform.container.AbstractComponentAdapter<T>
-
- org.exoplatform.container.InstanceComponentAdapter<T>
-
- All Implemented Interfaces:
Serializable,ComponentAdapter<T>,ComponentAdapter<T>
public class InstanceComponentAdapter<T> extends AbstractComponentAdapter<T>
- Version:
- $Id$
- Author:
- Nicolas Filotto
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceComponentAdapter(Object componentKey, T componentInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetComponentInstance()Retrieve the component instance.booleanisSingleton()Indicates whether or not this adapter is a singleton-
Methods inherited from class org.exoplatform.container.AbstractComponentAdapter
checkTypeCompatibility, getComponentImplementation, getComponentKey, toString
-
-
-
-
Constructor Detail
-
InstanceComponentAdapter
public InstanceComponentAdapter(Object componentKey, T componentInstance) throws ContainerException
- Throws:
ContainerException
-
-
Method Detail
-
getComponentInstance
public T getComponentInstance()
Retrieve the component instance. This method will usually create a new instance each time it is called, but that is not required.- Returns:
- the component instance.
-
isSingleton
public boolean isSingleton()
Indicates whether or not this adapter is a singleton
-
-