Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.opensymphony.xwork2.inject
Interface Context

    public interface Context

Context of the current injection.

Author:
  crazybob@google.com (Bob Lee)

Method Summary
`Container` | `getContainer()` Gets the `Container`.
`java.lang.reflect.Member` | `getMember()` Gets the field, method or constructor which is being injected.
`java.lang.String` | `getName()` Gets the name of the injection specified by `Inject.value()`.
`Scope.Strategy` | `getScopeStrategy()` Gets the current scope strategy.
`java.lang.Class<?>` | `getType()` Gets the type of the field or parameter which is being injected.

Method Detail

### getContainer

    Container getContainer()

  Gets the `Container`.

### getScopeStrategy

    Scope.Strategy getScopeStrategy()

  Gets the current scope strategy. See `Container.setScopeStrategy(Scope.Strategy)`.

  Throws:
    `java.lang.IllegalStateException` - if no strategy has been set

### getMember

    java.lang.reflect.Member getMember()

  Gets the field, method or constructor which is being injected. Returns `null` if the object currently being constructed is pre-loaded as a singleton or requested from `Container.getInstance(Class)`.

### getType

    java.lang.Class<?> getType()

  Gets the type of the field or parameter which is being injected.

### getName

    java.lang.String getName()

  Gets the name of the injection specified by `Inject.value()`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.