public class DefaultEnforcementRuleHelper extends Object implements org.apache.maven.enforcer.rule.api.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) |
Object |
getComponent(String theComponentKey) |
Object |
getComponent(String theRole,
String theRoleHint) |
List |
getComponentList(String theRole) |
Map |
getComponentMap(String theRole) |
org.codehaus.plexus.PlexusContainer |
getContainer() |
org.apache.maven.plugin.logging.Log |
getLog() |
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()
getLog in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperpublic File alignToBaseDirectory(File theFile)
alignToBaseDirectory in interface org.codehaus.plexus.component.configurator.expression.ExpressionEvaluatorpublic Object evaluate(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.ExpressionEvaluationExceptionpublic Object getComponent(Class clazz) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponent in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic Object getComponent(String theComponentKey) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponent in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic Object getComponent(String theRole, String theRoleHint) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponent in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic List getComponentList(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponentList in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic Map getComponentMap(String theRole) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
getComponentMap in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic org.codehaus.plexus.PlexusContainer getContainer()
getContainer in interface org.apache.maven.enforcer.rule.api.EnforcerRuleHelperCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.