|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.util.AbstractDecorator<T> ro.isdc.wro.model.resource.processor.decorator.AbstractProcessorDecoratorSupport<T>
public abstract class AbstractProcessorDecoratorSupport<T>
Hides details common to all processors decorators, like ability to identify if a processor is minimize aware
Constructor Summary | |
---|---|
AbstractProcessorDecoratorSupport(T decorated)
|
Method Summary | |
---|---|
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. |
Methods inherited from class ro.isdc.wro.util.AbstractDecorator |
---|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ro.isdc.wro.model.resource.processor.ResourcePreProcessor |
---|
process |
Constructor Detail |
---|
public 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.Method Detail |
---|
public final SupportedResourceType getSupportedResourceType()
getSupportedResourceTypeInternal()
on your own risk.
getSupportedResourceType
in interface SupportedResourceTypeAware
SupportedResourceType
annotation of the decorated processor if one exist.protected SupportedResourceType getSupportedResourceTypeInternal()
public final boolean isMinimize()
isMinimizeInternal()
on your own
risk.
isMinimize
in interface MinimizeAware
protected boolean isMinimizeInternal()
public boolean isSupported()
isSupported
in interface SupportAware
public boolean isImportAware()
isImportAware
in interface ImportAware
public final ResourceType[] getSupportedResourceTypes()
public final void process(Reader reader, Writer writer) throws IOException
process
in interface ResourcePostProcessor
reader
- source stream.writer
- destination stream.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |