public class DefaultEnforcementRuleHelper extends Object implements EnforcerRuleHelper
Constructor and Description |
---|
DefaultEnforcementRuleHelper(MavenSession session,
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator,
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) |
Object |
getComponent(String theComponentKey) |
Object |
getComponent(String theRole,
String theRoleHint) |
List |
getComponentList(String theRole) |
Map |
getComponentMap(String theRole) |
org.codehaus.plexus.PlexusContainer |
getContainer() |
Log |
getLog() |
public DefaultEnforcementRuleHelper(MavenSession session, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator, Log log, org.codehaus.plexus.PlexusContainer container)
session
- the sessionevaluator
- the evaluatorlog
- the logcontainer
- the containerpublic Log getLog()
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
getComponent
in interface EnforcerRuleHelper
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public Object getComponent(String theComponentKey) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponent
in interface EnforcerRuleHelper
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public Object getComponent(String theRole, String theRoleHint) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponent
in interface EnforcerRuleHelper
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public List getComponentList(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponentList
in interface EnforcerRuleHelper
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public Map getComponentMap(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponentMap
in interface EnforcerRuleHelper
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public org.codehaus.plexus.PlexusContainer getContainer()
getContainer
in interface EnforcerRuleHelper
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.