|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugins.enforcer.DefaultEnforcementRuleHelper
public class DefaultEnforcementRuleHelper
Default implementation of the EnforcementRuleHelper interface. This is used to help retrieve information from the session and provide useful elements like the log.
| Constructor Summary | |
|---|---|
DefaultEnforcementRuleHelper(org.apache.maven.execution.MavenSession session,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator,
org.apache.maven.plugin.logging.Log log,
org.codehaus.plexus.PlexusContainer container)
Instantiates a new default enforcement rule helper. |
|
| Method Summary | |
|---|---|
java.io.File |
alignToBaseDirectory(java.io.File theFile)
|
java.lang.Object |
evaluate(java.lang.String theExpression)
|
java.lang.Object |
getComponent(java.lang.Class clazz)
Gets the component. |
java.lang.Object |
getComponent(java.lang.String theComponentKey)
Gets the component. |
java.lang.Object |
getComponent(java.lang.String theRole,
java.lang.String theRoleHint)
Gets the component. |
java.util.List |
getComponentList(java.lang.String theRole)
Gets the component list. |
java.util.Map |
getComponentMap(java.lang.String theRole)
Gets the component map. |
org.codehaus.plexus.PlexusContainer |
getContainer()
Gets the container. |
org.apache.maven.plugin.logging.Log |
getLog()
Gets the log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEnforcementRuleHelper(org.apache.maven.execution.MavenSession session,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator,
org.apache.maven.plugin.logging.Log log,
org.codehaus.plexus.PlexusContainer container)
session - the sessionevaluator - the evaluatorlog - the logcontainer - the container| Method Detail |
|---|
public org.apache.maven.plugin.logging.Log getLog()
EnforcerRuleHelper
getLog in interface EnforcerRuleHelperpublic java.io.File alignToBaseDirectory(java.io.File theFile)
alignToBaseDirectory in interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
public java.lang.Object evaluate(java.lang.String theExpression)
throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
evaluate in interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluatororg.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
public java.lang.Object getComponent(java.lang.Class clazz)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent in interface EnforcerRuleHelperclazz - the clazz
org.codehaus.plexus.component.repository.exception.ComponentLookupException - the component lookup exception
public java.lang.Object getComponent(java.lang.String theComponentKey)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent in interface EnforcerRuleHelpertheComponentKey - the component key
org.codehaus.plexus.component.repository.exception.ComponentLookupException - the component lookup exception
public java.lang.Object getComponent(java.lang.String theRole,
java.lang.String theRoleHint)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent in interface EnforcerRuleHelpertheRole - the roletheRoleHint - the role hint
org.codehaus.plexus.component.repository.exception.ComponentLookupException - the component lookup exception
public java.util.List getComponentList(java.lang.String theRole)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponentList in interface EnforcerRuleHelpertheRole - the role
org.codehaus.plexus.component.repository.exception.ComponentLookupException - the component lookup exception
public java.util.Map getComponentMap(java.lang.String theRole)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponentMap in interface EnforcerRuleHelpertheRole - the role
org.codehaus.plexus.component.repository.exception.ComponentLookupException - the component lookup exceptionpublic org.codehaus.plexus.PlexusContainer getContainer()
EnforcerRuleHelper
getContainer in interface EnforcerRuleHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||