eXo Kernel :: Container 2.5.0-GA

org.exoplatform.container
Class InstanceComponentAdapter<T>

java.lang.Object
  extended by org.exoplatform.container.AbstractComponentAdapter<T>
      extended by 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

Constructor Summary
InstanceComponentAdapter(Object componentKey, T componentInstance)
           
 
Method Summary
 T getComponentInstance()
          Retrieve the component instance.
 boolean isSingleton()
          Indicates whether or not this adapter is a singleton
 
Methods inherited from class org.exoplatform.container.AbstractComponentAdapter
checkTypeCompatibility, getComponentImplementation, getComponentKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


eXo Kernel :: Container 2.5.0-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.