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
Fields Modifier and Type Field Description static String
ADAPTER_FACTORY_EP
static String
BLOB_POST_PROCESSOR_EP
protected List<BlobPostProcessor>
blobPostProcessors
protected Map<String,PreviewAdapterFactory>
factoryRegistry
static String
PREVIEWED_MIME_TYPE
protected Map<String,MimeTypePreviewer>
previewerFactory
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description PreviewAdapterManagerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlPreviewAdapter
getAdapter(DocumentModel doc)
List<BlobPostProcessor>
getBlobPostProcessors()
MimeTypePreviewer
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
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
ADAPTER_FACTORY_EP
public static final String ADAPTER_FACTORY_EP
- See Also:
- Constant Field Values
-
PREVIEWED_MIME_TYPE
public static final String PREVIEWED_MIME_TYPE
- See Also:
- Constant Field Values
-
BLOB_POST_PROCESSOR_EP
public static final String BLOB_POST_PROCESSOR_EP
- See Also:
- Constant Field Values
-
factoryRegistry
protected Map<String,PreviewAdapterFactory> factoryRegistry
-
previewerFactory
protected Map<String,MimeTypePreviewer> previewerFactory
-
blobPostProcessors
protected List<BlobPostProcessor> blobPostProcessors
-
-
Method Detail
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
newInstance
protected <T> T newInstance(Class<T> klass)
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
hasAdapter
public boolean hasAdapter(DocumentModel doc)
- Specified by:
hasAdapter
in interfacePreviewAdapterManager
-
getAdapter
public HtmlPreviewAdapter getAdapter(DocumentModel doc)
- Specified by:
getAdapter
in interfacePreviewAdapterManager
-
getPreviewer
public MimeTypePreviewer getPreviewer(String mimeType)
- Specified by:
getPreviewer
in interfacePreviewAdapterManager
-
getBlobPostProcessors
public List<BlobPostProcessor> getBlobPostProcessors()
- Specified by:
getBlobPostProcessors
in interfacePreviewAdapterManager
-
-