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>
public class InstanceComponentAdapter<T>
- extends AbstractComponentAdapter<T>
- Version:
- $Id$
- Author:
- Nicolas Filotto
- See Also:
- Serialized Form
InstanceComponentAdapter
public InstanceComponentAdapter(Object componentKey,
T componentInstance)
throws ContainerException
- Throws:
ContainerException
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
Copyright © 2014 eXo Platform SAS. All Rights Reserved.