|
||||||||||
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 | |
---|---|
File |
alignToBaseDirectory(File theFile)
|
Object |
evaluate(String theExpression)
|
Object |
getComponent(Class clazz)
Gets the component. |
Object |
getComponent(String theComponentKey)
Gets the component. |
Object |
getComponent(String theRole,
String theRoleHint)
Gets the component. |
List |
getComponentList(String theRole)
Gets the component list. |
Map |
getComponentMap(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 containerMethod Detail |
---|
public org.apache.maven.plugin.logging.Log getLog()
EnforcerRuleHelper
getLog
in interface EnforcerRuleHelper
public File alignToBaseDirectory(File theFile)
alignToBaseDirectory
in interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
public Object evaluate(String theExpression) throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
evaluate
in interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
public Object getComponent(Class clazz) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent
in interface EnforcerRuleHelper
clazz
- the clazz
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- the component lookup exceptionpublic Object getComponent(String theComponentKey) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent
in interface EnforcerRuleHelper
theComponentKey
- the component key
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- the component lookup exceptionpublic Object getComponent(String theRole, String theRoleHint) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponent
in interface EnforcerRuleHelper
theRole
- the roletheRoleHint
- the role hint
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- the component lookup exceptionpublic List getComponentList(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponentList
in interface EnforcerRuleHelper
theRole
- the role
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- the component lookup exceptionpublic Map getComponentMap(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
EnforcerRuleHelper
getComponentMap
in interface EnforcerRuleHelper
theRole
- 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 |