public class DynamicContentTypeDescriptorExtentionPoint extends AbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
_cache |
private ContentTypeExtensionPoint |
_contentTypeEP |
private ContentTypesHelper |
_contentTypesHelper |
private ServiceManager |
_smanager |
static String |
ROLE
Avalon Role
|
_cocoonManager, _context, _manager
Constructor and Description |
---|
DynamicContentTypeDescriptorExtentionPoint() |
Modifier and Type | Method and Description |
---|---|
private String |
_getCacheIdentifier(String[] contentTypes,
String[] mixins) |
private Set<String> |
_getContentTypesAndAncestor(String[] contentTypes,
String[] mixins) |
DynamicContentTypeDescriptor |
getMatchingDescriptor(String[] contentTypes,
String[] mixinTypes)
Get the matching dynamic descriptor for given content types and mixins
|
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. |
void |
service(ServiceManager manager) |
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize
getLogger, setLogger
public static final String ROLE
private ServiceManager _smanager
private ContentTypeExtensionPoint _contentTypeEP
private ContentTypesHelper _contentTypesHelper
public DynamicContentTypeDescriptorExtentionPoint()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
ServiceException
public void initializeExtensions() throws Exception
ExtensionPoint
addExtension()
calls.initializeExtensions
in interface ExtensionPoint<DynamicContentTypeDescriptor>
initializeExtensions
in class AbstractThreadSafeComponentExtensionPoint<DynamicContentTypeDescriptor>
Exception
- if something wrong occurspublic DynamicContentTypeDescriptor getMatchingDescriptor(String[] contentTypes, String[] mixinTypes)
contentTypes
- The content typesmixinTypes
- The mixinsnull
if not foundprivate Set<String> _getContentTypesAndAncestor(String[] contentTypes, String[] mixins)
private String _getCacheIdentifier(String[] contentTypes, String[] mixins)