Package org.ametys.plugins.webcontentio
Class ContentImporterExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<ContentImporter>
-
- org.ametys.plugins.webcontentio.ContentImporterExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<ContentImporter>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class ContentImporterExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<ContentImporter>
Extension point forContentImporter
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
Avalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description ContentImporterExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentImporter
getContentImporterForMimeType(String mimeType)
Returns theContentImporter
corresponding to a mime 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
-
ContentImporterExtensionPoint
public ContentImporterExtensionPoint()
-
-
Method Detail
-
getContentImporterForMimeType
public ContentImporter getContentImporterForMimeType(String mimeType)
Returns theContentImporter
corresponding to a mime type.- Parameters:
mimeType
- the content mime type- Returns:
- the
ContentImporter
corresponding to a mime type.
-
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<ContentImporter>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<ContentImporter>
- Throws:
Exception
- if something wrong occurs
-
-