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
Modifier and TypeFieldDescriptionstatic final String
static final String
protected List<BlobPostProcessor>
protected Map<String,
PreviewAdapterFactory> static final String
protected Map<String,
MimeTypePreviewer> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdapter
(DocumentModel doc) getPreviewer
(String mimeType) boolean
hasAdapter
(DocumentModel doc) protected <T> T
newInstance
(Class<T> klass) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
unregisterContribution
(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, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
registerContribution
in classDefaultComponent
-
newInstance
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
hasAdapter
- Specified by:
hasAdapter
in interfacePreviewAdapterManager
-
getAdapter
- Specified by:
getAdapter
in interfacePreviewAdapterManager
-
getPreviewer
- Specified by:
getPreviewer
in interfacePreviewAdapterManager
-
getBlobPostProcessors
- Specified by:
getBlobPostProcessors
in interfacePreviewAdapterManager
-