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:
CssLintMojo, JsHintMojo

public abstract class AbstractSingleProcessorMojo
extends AbstractWro4jMojo

Maven plugin which use a singe 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  StandaloneContextAwareManagerFactory getManagerFactory()
          This method will ensure that you have a right and initialized instance of StandaloneContextAwareManagerFactory.
 java.lang.String[] getOptions()
           
 boolean isFailNever()
           
 void setFailNever(boolean failNever)
           
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getContextFolder, getTargetGroups, getTargetGroupsAsList, getWroFile, isIgnoreMissingResources, isMinimize, newWroManagerFactory, setContextFolder, setExtraConfigFile, setIgnoreMissingResources, setMinimize, setTargetGroups, setWroFile, setWroManagerFactory, 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 java.lang.Exception
Perform actual plugin processing.

Specified by:
doExecute in class AbstractWro4jMojo
Throws:
java.lang.Exception

getManagerFactory

protected StandaloneContextAwareManagerFactory getManagerFactory()
                                                          throws java.lang.Exception
This method will ensure that you have a right and initialized instance of StandaloneContextAwareManagerFactory.

Overrides:
getManagerFactory in class AbstractWro4jMojo
Returns:
WroManagerFactory implementation.
Throws:
java.lang.Exception

createResourceProcessor

protected abstract ResourcePreProcessor createResourceProcessor()

getOptions

public java.lang.String[] getOptions()
Returns:
an array of options.

setFailNever

public void setFailNever(boolean failNever)
Parameters:
failNever - the failFast to set

isFailNever

public boolean isFailNever()
Returns:
the failNever


Copyright © 2008-2011. All Rights Reserved.