Package org.ametys.cms.transformation
Class URIResolverExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<URIResolver>
-
- org.ametys.cms.transformation.URIResolverExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<URIResolver>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class URIResolverExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<URIResolver>
Extension point forURIResolver
s.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,URIResolver>
_types
static String
ROLE
Avalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description URIResolverExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIResolver
getResolverForType(String type)
Returns theURIResolver
corresponding to the given type.void
initializeExtensions()
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
-
-
-
-
Constructor Detail
-
URIResolverExtensionPoint
public URIResolverExtensionPoint()
-
-
Method Detail
-
initializeExtensions
public void initializeExtensions() throws Exception
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<URIResolver>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<URIResolver>
- Throws:
Exception
- if something wrong occurs
-
getResolverForType
public URIResolver getResolverForType(String type)
Returns theURIResolver
corresponding to the given type.- Parameters:
type
- the type.- Returns:
- the
URIResolver
ornull
if not found.
-
-