public class DefaultEnforcementRuleHelper extends Object implements EnforcerRuleHelper
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 containerpublic 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 clazzorg.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 keyorg.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 hintorg.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 roleorg.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 roleorg.codehaus.plexus.component.repository.exception.ComponentLookupException
- the component lookup exceptionpublic org.codehaus.plexus.PlexusContainer getContainer()
EnforcerRuleHelper
getContainer
in interface EnforcerRuleHelper
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.