Class PreviewAdapterManagerComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent
- All Implemented Interfaces:
PreviewAdapterManager,Adaptable,Component,Extensible,TimestampedService
public class PreviewAdapterManagerComponent
extends DefaultComponent
implements PreviewAdapterManager
Runtime component that handles the extension points and the service interface for Preview Adapter management.
- Author:
- tiry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected List<BlobPostProcessor> protected Map<String, PreviewAdapterFactory> static final Stringprotected Map<String, MimeTypePreviewer> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdapter(DocumentModel doc) getPreviewer(String mimeType) booleanhasAdapter(DocumentModel doc) protected <T> TnewInstance(Class<T> klass) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
ADAPTER_FACTORY_EP
- See Also:
-
PREVIEWED_MIME_TYPE
- See Also:
-
BLOB_POST_PROCESSOR_EP
- See Also:
-
factoryRegistry
-
previewerFactory
-
blobPostProcessors
-
-
Constructor Details
-
PreviewAdapterManagerComponent
public PreviewAdapterManagerComponent()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
newInstance
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
hasAdapter
- Specified by:
hasAdapterin interfacePreviewAdapterManager
-
getAdapter
- Specified by:
getAdapterin interfacePreviewAdapterManager
-
getPreviewer
- Specified by:
getPreviewerin interfacePreviewAdapterManager
-
getBlobPostProcessors
- Specified by:
getBlobPostProcessorsin interfacePreviewAdapterManager
-