public class PreviewAdapterManagerComponent extends DefaultComponent implements PreviewAdapterManager
Modifier and Type | Field and 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 |
lastModified
Constructor and Description |
---|
PreviewAdapterManagerComponent() |
Modifier and Type | Method and 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) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
public static final String ADAPTER_FACTORY_EP
public static final String PREVIEWED_MIME_TYPE
public static final String BLOB_POST_PROCESSOR_EP
protected Map<String,PreviewAdapterFactory> factoryRegistry
protected Map<String,MimeTypePreviewer> previewerFactory
protected List<BlobPostProcessor> blobPostProcessors
public PreviewAdapterManagerComponent()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
protected <T> T newInstance(Class<T> klass)
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public boolean hasAdapter(DocumentModel doc)
hasAdapter
in interface PreviewAdapterManager
public HtmlPreviewAdapter getAdapter(DocumentModel doc)
getAdapter
in interface PreviewAdapterManager
public MimeTypePreviewer getPreviewer(String mimeType)
getPreviewer
in interface PreviewAdapterManager
public List<BlobPostProcessor> getBlobPostProcessors()
getBlobPostProcessors
in interface PreviewAdapterManager
Copyright © 2015 Nuxeo SA. All rights reserved.