public abstract class AbstractProcessorDecoratorSupport<T> extends AbstractDecorator<T> implements ResourcePreProcessor, ResourcePostProcessor, SupportedResourceTypeAware, MinimizeAware, SupportAware, ImportAware
| Constructor and Description |
|---|
AbstractProcessorDecoratorSupport(T decorated) |
| Modifier and Type | Method and Description |
|---|---|
SupportedResourceType |
getSupportedResourceType()
This method is final, because it intends to preserve the getSupportedResourceType flag of the decorated processor.
|
protected SupportedResourceType |
getSupportedResourceTypeInternal()
Allow subclass override the way getSupportedResourceType is used.
|
ResourceType[] |
getSupportedResourceTypes() |
boolean |
isImportAware() |
boolean |
isMinimize()
This method is final, because it intends to preserve the minimize flag of the decorated processor.
|
protected boolean |
isMinimizeInternal()
Allow subclass override the way isMinimized is used.
|
boolean |
isSupported() |
void |
process(Reader reader,
Writer writer)
Perform actual resource processing.
|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprocesspublic AbstractProcessorDecoratorSupport(T decorated)
the - decorated processor. The type of the returned object is Object because we don't really care and we
need it only to check if the processor is minimize aware and get its supported type. This "hack" will e
removed in 1.5.0.public final SupportedResourceType getSupportedResourceType()
getSupportedResourceTypeInternal() on your own risk.getSupportedResourceType in interface SupportedResourceTypeAwareSupportedResourceType annotation of the decorated processor if one exist.protected SupportedResourceType getSupportedResourceTypeInternal()
public final boolean isMinimize()
isMinimizeInternal() on your own
risk.isMinimize in interface MinimizeAwareprotected boolean isMinimizeInternal()
public boolean isSupported()
isSupported in interface SupportAwarepublic boolean isImportAware()
isImportAware in interface ImportAwarepublic final ResourceType[] getSupportedResourceTypes()
public final void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorreader - source stream.writer - destination stream.IOExceptionCopyright © 2008-2013. All Rights Reserved.