Package org.exoplatform.container.jmx
Class MX4JComponentAdapterMT<T>
java.lang.Object
org.exoplatform.container.AbstractComponentAdapter<T>
org.exoplatform.container.jmx.MX4JComponentAdapter<T>
org.exoplatform.container.jmx.MX4JComponentAdapterMT<T>
- All Implemented Interfaces:
Serializable,javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.PassivationCapable,ComponentAdapterDependenciesAware<T>,DependencyStackListener,org.exoplatform.container.spi.ComponentAdapter<T>,org.picocontainer.ComponentAdapter<T>
- Direct Known Subclasses:
ManageableComponentAdapterMT
public class MX4JComponentAdapterMT<T>
extends org.exoplatform.container.jmx.MX4JComponentAdapter<T>
implements DependencyStackListener, ComponentAdapterDependenciesAware<T>
- See Also:
-
Field Summary
Fields inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
exocontainer, instance_, isInitialized, isSingleton, lock, scope -
Constructor Summary
ConstructorsConstructorDescriptionMX4JComponentAdapterMT(org.exoplatform.container.ExoContainer holder, ConcurrentContainerMT container, Object key, Class<T> implementation) -
Method Summary
Modifier and TypeMethodDescriptionvoidcallDependency(ComponentTask<?> task, Dependency dep) Used to trigger an action in case we are trying to call a dependencyprotected Tcreate()Must be used to create Singleton or Prototype onlyprotected TcreateInstance(javax.enterprise.context.spi.Context ctx) protected TdoCreate()Must be used to create Singleton or Prototype onlyprotected TdoCreate(boolean useSharedMemory) Must be used to create Singleton or Prototype onlyGives the create dependencies of the componentprotected ComponentTask<T> Gives the initialization dependencies of the componentprotected Collection<ComponentTask<Void>> protected voidsetCreateDependencies(List<Dependency> lDependencies) Methods inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
destroy, equals, getComponentInstance, getId, getScope, getSetMethod, hashCode, isSingleton, manageScopeMethods inherited from class org.exoplatform.container.AbstractComponentAdapter
checkTypeCompatibility, getComponentImplementation, getComponentKey, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.exoplatform.container.spi.ComponentAdapter
getComponentImplementation, getComponentInstance, getComponentKey, isSingleton
-
Constructor Details
-
MX4JComponentAdapterMT
public MX4JComponentAdapterMT(org.exoplatform.container.ExoContainer holder, ConcurrentContainerMT container, Object key, Class<T> implementation)
-
-
Method Details
-
getCreateDependencies
Gives the create dependencies of the component- Specified by:
getCreateDependenciesin interfaceComponentAdapterDependenciesAware<T>- Returns:
- a
CollectionofDependencyobjects representing the dependencies of the component for the creation phase
-
getInitDependencies
Gives the initialization dependencies of the component- Specified by:
getInitDependenciesin interfaceComponentAdapterDependenciesAware<T>- Returns:
- a
CollectionofDependencyobjects representing the dependencies of the component for the initialization phase
-
callDependency
Used to trigger an action in case we are trying to call a dependency- Specified by:
callDependencyin interfaceDependencyStackListener
-
getCreateTask
-
setCreateDependencies
-
getInitTasks
-
createInstance
- Overrides:
createInstancein classorg.exoplatform.container.jmx.MX4JComponentAdapter<T>
-
create
Must be used to create Singleton or Prototype only- Overrides:
createin classorg.exoplatform.container.jmx.MX4JComponentAdapter<T>
-
doCreate
Must be used to create Singleton or Prototype only -
doCreate
Must be used to create Singleton or Prototype only -
create
-