Class ResourceMetadataPopulatorExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<ResourceMetadataPopulator>
org.ametys.plugins.explorer.resources.metadata.populate.ResourceMetadataPopulatorExtensionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<ResourceMetadataPopulator>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class ResourceMetadataPopulatorExtensionPoint
extends AbstractThreadSafeComponentExtensionPoint<ResourceMetadataPopulator>
Extension point for
ResourceMetadataPopulator
s.-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPopulator
(String type, ResourceMetadataPopulator populator) Add the populator to the map.getPopulators
(String type) Returns theResourceMetadataPopulator
s corresponding to the given type.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.protected void
Initialize the populator map by type.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
-
ResourceMetadataPopulatorExtensionPoint
-
-
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<ResourceMetadataPopulator>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<ResourceMetadataPopulator>
- Throws:
Exception
- if something wrong occurs
-
initializePopulatorMap
Initialize the populator map by type. -
addPopulator
Add the populator to the map.- Parameters:
type
- the mime type or the empty string.populator
- the populator.
-
getPopulators
Returns theResourceMetadataPopulator
s corresponding to the given type.- Parameters:
type
- the MIME type.- Returns:
- a Collection of
ResourceMetadataPopulator
s, empty if there is no populator for the given type.
-