Class AbstractSelectorExtensionPoint<T extends Component>
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<T>
-
- org.ametys.runtime.plugin.component.AbstractSelectorExtensionPoint<T>
-
- Type Parameters:
T- the type of the managed extensions. Must extends Component to be compatible with the ComponentSelector contract
- All Implemented Interfaces:
LogEnabled,ParentAware,ExtensionPoint<T>,Disposable,Initializable,Component,ComponentSelector,Contextualizable,Serviceable,ThreadSafe
- Direct Known Subclasses:
InputModulesExtensionPoint,SourceFactoriesExtensionPoint
public abstract class AbstractSelectorExtensionPoint<T extends Component> extends AbstractThreadSafeComponentExtensionPoint<T> implements ParentAware, ComponentSelector
Bridge between the plugin stuff and Cocoon ComponentSelectors.
The aim is to provide a way to declare InputModules, DataSources, SourceFactories, ... at the plugin level.
Selectable components are declared as extensions to this extension point and may be used as normal Cocoon components.
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectorExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasComponent(Object hint)voidrelease(Component component)Componentselect(Object hint)voidsetParent(Object parentComponent)Set the parent component-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
AbstractSelectorExtensionPoint
public AbstractSelectorExtensionPoint()
-
-
Method Detail
-
select
public Component select(Object hint) throws ComponentException
- Specified by:
selectin interfaceComponentSelector- Throws:
ComponentException
-
hasComponent
public boolean hasComponent(Object hint)
- Specified by:
hasComponentin interfaceComponentSelector
-
release
public void release(Component component)
- Specified by:
releasein interfaceComponentSelector
-
setParent
public void setParent(Object parentComponent)
Description copied from interface:ParentAwareSet the parent component- Specified by:
setParentin interfaceParentAware- Parameters:
parentComponent- the parent component
-
-