public class ResourceMetadataPopulatorExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<ResourceMetadataPopulator>
ResourceMetadataPopulator
s.Modifier and Type | Field and Description |
---|---|
private Map<String,Set<ResourceMetadataPopulator>> |
_types |
static String |
ROLE
Avalon Role
|
_cocoonManager, _context, _manager
Constructor and Description |
---|
ResourceMetadataPopulatorExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPopulator(String type,
ResourceMetadataPopulator populator)
Add the populator to the map.
|
Collection<ResourceMetadataPopulator> |
getPopulators(String type)
Returns the
ResourceMetadataPopulator s corresponding to the given type. |
void |
initializeExtensions()
Finalize the initialization of the extensions.
This method is called after all addExtension() calls.This is the last step before the actual startup of the application. |
protected void |
initializePopulatorMap()
Initialize the populator map by type.
|
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, service
getLogger, setLogger
private Map<String,Set<ResourceMetadataPopulator>> _types
public ResourceMetadataPopulatorExtensionPoint()
public void initializeExtensions() throws Exception
ExtensionPoint
addExtension()
calls.initializeExtensions
in interface ExtensionPoint<ResourceMetadataPopulator>
initializeExtensions
in class AbstractThreadSafeComponentExtensionPoint<ResourceMetadataPopulator>
Exception
- if something wrong occursprotected void initializePopulatorMap()
protected void addPopulator(String type, ResourceMetadataPopulator populator)
type
- the mime type or the empty string.populator
- the populator.public Collection<ResourceMetadataPopulator> getPopulators(String type)
ResourceMetadataPopulator
s corresponding to the given type.type
- the MIME type.ResourceMetadataPopulator
s, empty if there is no populator for the given type.