31
32
* This is the interface that all helpers will use. This
32
33
* provides access to the log, session and components to the
35
36
* @author <a href="mailto:brianf@apache.org">Brian Fox</a>
36
* @version $Id: EnforcerRuleHelper.java 675992 2008-07-11 15:42:48Z hboutemy $
37
* @version $Id: EnforcerRuleHelper.java 805162 2009-08-17 21:48:52Z hboutemy $
38
39
public interface EnforcerRuleHelper
39
40
extends ExpressionEvaluator
52
53
* @see org.apache.maven.shared.enforcer.rule.api.EnforcerRuleHelper#getRuntimeInformation()
55
56
* Gets the component.
57
58
* @param clazz the clazz
59
60
* @return the component
61
62
* @throws ComponentLookupException the component lookup exception
63
public Object getComponent ( Class clazz )
64
Object getComponent ( Class clazz )
64
65
throws ComponentLookupException;
67
68
* Gets the component.
69
70
* @param componentKey the component key
71
72
* @return the component
73
74
* @throws ComponentLookupException the component lookup exception
75
public Object getComponent ( String componentKey )
76
Object getComponent ( String componentKey )
76
77
throws ComponentLookupException;
79
80
* Gets the component.
81
82
* @param role the role
82
83
* @param roleHint the role hint
84
85
* @return the component
86
87
* @throws ComponentLookupException the component lookup exception
88
public Object getComponent ( String role, String roleHint )
89
Object getComponent ( String role, String roleHint )
89
90
throws ComponentLookupException;
92
93
* Gets the component map.
94
95
* @param role the role
96
97
* @return the component map
98
99
* @throws ComponentLookupException the component lookup exception
100
public Map getComponentMap ( String role )
101
Map getComponentMap ( String role )
101
102
throws ComponentLookupException;
104
105
* Gets the component list.
106
107
* @param role the role
108
109
* @return the component list
110
111
* @throws ComponentLookupException the component lookup exception
112
public List getComponentList ( String role )
113
List getComponentList ( String role )
113
114
throws ComponentLookupException;
116
117
* Gets the container.
118
119
* @return the container
120
public PlexusContainer getContainer();
121
PlexusContainer getContainer();