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>
ExtensionPoint
hosting all AmetysObjectFactory
.-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFactoryForNodetype
(String nodetype) Returns theAmetysObjectFactory
corresponding to the given nodetype.getFactoryForScheme
(String scheme) Returns theAmetysObjectFactory
corresponding to the given scheme.void
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 Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
AmetysObjectFactoryExtensionPoint
public AmetysObjectFactoryExtensionPoint()
-
-
Method Details
-
initializeExtensions
Description copied from interface:ExtensionPoint
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.- Specified by:
initializeExtensions
in interfaceExtensionPoint<AmetysObjectFactory>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<AmetysObjectFactory>
- Throws:
Exception
- if something wrong occurs
-
getFactoryForScheme
Returns theAmetysObjectFactory
corresponding to the given scheme.- Parameters:
scheme
- the scheme.- Returns:
- the
AmetysObjectFactory
ornull
if not found.
-
getFactoryForNodetype
Returns theAmetysObjectFactory
corresponding to the given nodetype.- Parameters:
nodetype
- the nodetype.- Returns:
- the
AmetysObjectFactory
ornull
if not found.
-