ro.isdc.wro.maven.plugin
Class AbstractSingleProcessorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by ro.isdc.wro.maven.plugin.AbstractWro4jMojo
          extended by ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractLinterMojo

public abstract class AbstractSingleProcessorMojo
extends AbstractWro4jMojo

Maven plugin which use a single processor.

Author:
Alex Objelean

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractSingleProcessorMojo()
           
 
Method Summary
protected abstract  ResourcePreProcessor createResourceProcessor()
           
 void doExecute()
          Perform actual plugin processing.
protected  WroManagerFactory getManagerFactory()
          This method will ensure that you have a right and initialized instance of StandaloneContextAware.
protected  String getOptions()
           
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getTargetGroupsAsList, isIncrementalBuild, newWroManagerFactory, onAfterExecute, onBeforeExecute, validate
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSingleProcessorMojo

public AbstractSingleProcessorMojo()
Method Detail

doExecute

public final void doExecute()
                     throws Exception
Perform actual plugin processing.

Specified by:
doExecute in class AbstractWro4jMojo
Throws:
Exception

getManagerFactory

protected WroManagerFactory getManagerFactory()
This method will ensure that you have a right and initialized instance of StandaloneContextAware. When overriding this method, ensure that creating managerFactory performs injection during manager creation, otherwise the manager won't be initialized porperly.

Overrides:
getManagerFactory in class AbstractWro4jMojo
Returns:
WroManagerFactory implementation.

createResourceProcessor

protected abstract ResourcePreProcessor createResourceProcessor()

getOptions

protected String getOptions()
Returns:
raw representation of the option value.


Copyright © 2008-2013. All Rights Reserved.