|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.inject.ExternalContext<T>
class ExternalContext<T>
An immutable snapshot of the current context which is safe to expose to client code.
Field Summary | |
---|---|
(package private) ContainerImpl |
container
|
(package private) Key<T> |
key
|
(package private) Member |
member
|
Constructor Summary | |
---|---|
ExternalContext(Member member,
Key<T> key,
ContainerImpl container)
|
Method Summary | ||
---|---|---|
Container |
getContainer()
Gets the Container . |
|
Member |
getMember()
Gets the field, method or constructor which is being injected. |
|
String |
getName()
Gets the name of the injection specified by Inject.value() . |
|
Scope.Strategy |
getScopeStrategy()
Gets the current scope strategy. |
|
Class<T> |
getType()
Gets the type of the field or parameter which is being injected. |
|
(package private) static
|
newInstance(Member member,
Key<T> key,
ContainerImpl container)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
final Member member
final Key<T> key
final ContainerImpl container
Constructor Detail |
---|
public ExternalContext(Member member, Key<T> key, ContainerImpl container)
Method Detail |
---|
public Class<T> getType()
Context
getType
in interface Context
public Scope.Strategy getScopeStrategy()
Context
Container.setScopeStrategy(Scope.Strategy)
.
getScopeStrategy
in interface Context
public Container getContainer()
Context
Container
.
getContainer
in interface Context
public Member getMember()
Context
null
if the object currently being constructed is pre-loaded as
a singleton or requested from Container.getInstance(Class)
.
getMember
in interface Context
public String getName()
Context
Inject.value()
.
getName
in interface Context
public String toString()
toString
in class Object
static <T> ExternalContext<T> newInstance(Member member, Key<T> key, ContainerImpl container)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |