| Package | Description |
|---|---|
| org.exoplatform.container |
This package provides container API.
|
| org.exoplatform.container.management | |
| org.exoplatform.container.spi |
This package defines most important classes and interfaces, that should be used in case
you would like to implement a new
Container. |
| Modifier and Type | Field and Description |
|---|---|
protected Set<ComponentAdapter<?>> |
ConcurrentContainer.componentAdapters |
protected ConcurrentMap<Object,ComponentAdapter<?>> |
ConcurrentContainer.componentKeyToAdapterCache |
protected CopyOnWriteArrayList<ComponentAdapter<?>> |
ConcurrentContainer.orderedComponentAdapters |
| Modifier and Type | Method and Description |
|---|---|
ComponentAdapter<?> |
ExoContainer.getComponentAdapter(Object componentKey)
Find a component adapter associated with the specified key.
|
<T> ComponentAdapter<T> |
ExoContainer.getComponentAdapter(Object componentKey,
Class<T> bindType)
This method is equivalent to
ExoContainer.getComponentAdapter(Object, Class, boolean) with true for the parameter
autoRegistration |
<T> ComponentAdapter<T> |
ExoContainer.getComponentAdapter(Object componentKey,
Class<T> bindType,
boolean autoRegistration)
Find a component adapter associated with the specified key.
|
<T> ComponentAdapter<T> |
ConcurrentContainer.getComponentAdapter(Object componentKey,
Class<T> bindType,
boolean autoRegistration) |
<T> ComponentAdapter<T> |
AbstractContainer.getComponentAdapter(Object componentKey,
Class<T> bindType,
boolean autoRegistration)
Find a component adapter associated with the specified key.
|
<T> ComponentAdapter<T> |
ExoContainer.getComponentAdapterOfType(Class<T> componentType)
This method is equivalent to
ExoContainer.getComponentAdapterOfType(Class, boolean) with true for the parameter
autoRegistration |
<T> ComponentAdapter<T> |
CachingContainer.getComponentAdapterOfType(Class<T> componentType,
boolean autoRegistration) |
<T> ComponentAdapter<T> |
ExoContainer.getComponentAdapterOfType(Class<T> componentType,
boolean autoRegistration)
Find a component adapter associated with the specified type.
|
<T> ComponentAdapter<T> |
ConcurrentContainer.getComponentAdapterOfType(Class<T> componentType,
boolean autoRegistration) |
<T> ComponentAdapter<T> |
AbstractContainer.getComponentAdapterOfType(Class<T> componentType,
boolean autoRegistration)
Find a component adapter associated with the specified type.
|
protected ComponentAdapter<?> |
ConcurrentContainer.registerComponent(ComponentAdapter<?> componentAdapter)
Register a component via a ComponentAdapter.
|
<T> ComponentAdapter<T> |
ExoContainer.registerComponentImplementation(Class<T> componentImplementation)
Register a component using the componentImplementation as key.
|
<T> ComponentAdapter<T> |
CachingContainer.registerComponentImplementation(Object componentKey,
Class<T> componentImplementation) |
<T> ComponentAdapter<T> |
ConcurrentContainer.registerComponentImplementation(Object componentKey,
Class<T> componentImplementation)
Register a component.
|
<T> ComponentAdapter<T> |
AbstractContainer.registerComponentImplementation(Object componentKey,
Class<T> componentImplementation)
Register a component.
|
<T> ComponentAdapter<T> |
CachingContainer.registerComponentInstance(Object componentKey,
T componentInstance) |
<T> ComponentAdapter<T> |
ConcurrentContainer.registerComponentInstance(Object componentKey,
T componentInstance)
Register an arbitrary object as a component in the container.
|
<T> ComponentAdapter<T> |
AbstractContainer.registerComponentInstance(Object componentKey,
T componentInstance)
Register an arbitrary object as a component in the container.
|
<T> ComponentAdapter<T> |
ExoContainer.registerComponentInstance(T componentInstance)
Register an arbitrary object.
|
ComponentAdapter<?> |
CachingContainer.unregisterComponent(Object componentKey) |
ComponentAdapter<?> |
ConcurrentContainer.unregisterComponent(Object componentKey) |
ComponentAdapter<?> |
AbstractContainer.unregisterComponent(Object componentKey)
Unregister a component by key.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ComponentAdapter<?>> |
ConcurrentContainer.getComponentAdapters() |
Collection<ComponentAdapter<?>> |
AbstractContainer.getComponentAdapters()
Retrieve all the component adapters inside this container.
|
<T> List<ComponentAdapter<T>> |
CachingContainer.getComponentAdaptersOfType(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
ConcurrentContainer.getComponentAdaptersOfType(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
AbstractContainer.getComponentAdaptersOfType(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConcurrentContainer.addOrderedComponentAdapter(ComponentAdapter<?> componentAdapter) |
protected <T> T |
ConcurrentContainer.getComponentInstanceFromContext(ComponentAdapter<T> componentAdapter,
Class<T> bindType)
Gets the component instance from the context
|
protected <T> T |
ConcurrentContainer.getInstance(ComponentAdapter<T> componentAdapter,
Class<T> type,
boolean autoRegistration) |
protected ComponentAdapter<?> |
ConcurrentContainer.registerComponent(ComponentAdapter<?> componentAdapter)
Register a component via a ComponentAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ComponentAdapter<T> |
ManageableComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class<T> componentImplementation) |
<T> ComponentAdapter<T> |
ManageableContainer.registerComponentInstance(Object componentKey,
T componentInstance)
Register an arbitrary object as a component in the container.
|
ComponentAdapter<?> |
ManageableContainer.unregisterComponent(Object componentKey)
Unregister a component by key.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ComponentAdapter<T> |
ComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class<T> componentImplementation)
Create a new component adapter based on the specified arguments.
|
<T> ComponentAdapter<T> |
Container.getComponentAdapter(Object componentKey,
Class<T> bindType,
boolean autoRegistration)
Find a component adapter associated with the specified key.
|
<T> ComponentAdapter<T> |
Container.getComponentAdapterOfType(Class<T> componentType,
boolean autoRegistration)
Find a component adapter associated with the specified type.
|
<T> ComponentAdapter<T> |
Container.registerComponentImplementation(Object componentKey,
Class<T> componentImplementation)
Register a component.
|
<T> ComponentAdapter<T> |
Container.registerComponentInstance(Object componentKey,
T componentInstance)
Register an arbitrary object as a component in the container.
|
ComponentAdapter<?> |
Container.unregisterComponent(Object componentKey)
Unregister a component by key.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ComponentAdapter<?>> |
Container.getComponentAdapters()
Retrieve all the component adapters inside this container.
|
<T> List<ComponentAdapter<T>> |
Container.getComponentAdaptersOfType(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type.
|
Copyright © 2019 eXo Platform SAS. All Rights Reserved.