public interface Context
Modifier and Type | Method and Description |
---|---|
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<?> |
getType()
Gets the type of the field or parameter which is being injected.
|
Scope.Strategy getScopeStrategy()
Container.setScopeStrategy(Scope.Strategy)
.IllegalStateException
- if no strategy has been setMember getMember()
null
if the object currently being constructed is pre-loaded as
a singleton or requested from Container.getInstance(Class)
.Class<?> getType()
String getName()
Inject.value()
.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.