Package org.ametys.cms.contenttype
Class DynamicContentTypeDescriptorExtentionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
org.ametys.cms.contenttype.DynamicContentTypeDescriptorExtentionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<DynamicContentTypeDescriptor>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class DynamicContentTypeDescriptorExtentionPoint
extends AbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
This class is in charge of handling dynamic content type descriptor extension point.
This point handles the pool of available dynamic content type descriptors.
This point handles the pool of available dynamic content type descriptors.
-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMatchingDescriptor
(String[] contentTypes, String[] mixinTypes) Get the matching dynamic descriptor for given content types and mixinsvoid
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.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role- See Also:
-
-
Constructor Details
-
DynamicContentTypeDescriptorExtentionPoint
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
- Throws:
ServiceException
-
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<DynamicContentTypeDescriptor>
- Overrides:
initializeExtensions
in classAbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
- Throws:
Exception
- if something wrong occurs
-
getMatchingDescriptor
public DynamicContentTypeDescriptor getMatchingDescriptor(String[] contentTypes, String[] mixinTypes) Get the matching dynamic descriptor for given content types and mixins- Parameters:
contentTypes
- The content typesmixinTypes
- The mixins- Returns:
- The matching dynamic descriptor or
null
if not found
-