Package org.ametys.plugins.repository
Class AmetysObjectFactoryExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<AmetysObjectFactory>
-
- org.ametys.plugins.repository.AmetysObjectFactoryExtensionPoint
-
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<AmetysObjectFactory>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class AmetysObjectFactoryExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<AmetysObjectFactory>
ExtensionPointhosting allAmetysObjectFactory.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,AmetysObjectFactory>_nodetypesprivate Map<String,AmetysObjectFactory>_schemesstatic StringROLEAvalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description AmetysObjectFactoryExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmetysObjectFactorygetFactoryForNodetype(String nodetype)Returns theAmetysObjectFactorycorresponding to the given nodetype.AmetysObjectFactorygetFactoryForScheme(String scheme)Returns theAmetysObjectFactorycorresponding to the given scheme.voidinitializeExtensions()Finalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_schemes
private Map<String,AmetysObjectFactory> _schemes
-
_nodetypes
private Map<String,AmetysObjectFactory> _nodetypes
-
-
Constructor Detail
-
AmetysObjectFactoryExtensionPoint
public AmetysObjectFactoryExtensionPoint()
-
-
Method Detail
-
initializeExtensions
public void initializeExtensions() throws Exception
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensionsin interfaceExtensionPoint<AmetysObjectFactory>- Overrides:
initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<AmetysObjectFactory>- Throws:
Exception- if something wrong occurs
-
getFactoryForScheme
public AmetysObjectFactory getFactoryForScheme(String scheme)
Returns theAmetysObjectFactorycorresponding to the given scheme.- Parameters:
scheme- the scheme.- Returns:
- the
AmetysObjectFactoryornullif not found.
-
getFactoryForNodetype
public AmetysObjectFactory getFactoryForNodetype(String nodetype)
Returns theAmetysObjectFactorycorresponding to the given nodetype.- Parameters:
nodetype- the nodetype.- Returns:
- the
AmetysObjectFactoryornullif not found.
-
-