Package org.apache.struts2.inject
Interface Context
public interface Context
Context of the current injection.
- Author:
- crazybob@google.com (Bob Lee)
- 
Method Details- 
getContainerContainer getContainer()- Returns:
- the Container.
 
- 
getScopeStrategyScope.Strategy getScopeStrategy()- Returns:
- the current scope strategy. See Container.setScopeStrategy(Scope.Strategy).
- Throws:
- IllegalStateException- if no strategy has been set
 
- 
getMemberMember getMember()- Returns:
- the field, method or constructor which is being injected. Returns
 nullif the object currently being constructed is pre-loaded as a singleton or requested fromContainer.getInstance(Class).
 
- 
getTypeClass<?> getType()- Returns:
- the type of the field or parameter which is being injected.
 
- 
getNameString getName()- Returns:
- the name of the injection specified by Inject.value().
 
 
-