|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - - The type of the provided object.
Example for javax.inject.Qualifier: public class InjectionProvider() { @Override public boolean verify(final InjectionTargetInformation information) { return information.getAnnotation(CurrentUser.class) != null; } @Override public Object getKey(final InjectionTargetInformation information) { return CurrentUser.class; } @Override public User getInjectedObject(final Class> type) { return new User(); } }
public interface InjectionProvider<T>
Provides an instances of T and verifies an injection target.
| Method Summary | |
|---|---|
T |
getInjectedObject(Class<?> injectionPointType)
Provides an instance of T. |
Object |
getKey(InjectionTargetInformation injectionTargetInformation)
Returns a key object, which identifies the provided object. |
| Methods inherited from interface de.akquinet.jbosscc.needle.injection.InjectionVerifier |
|---|
verify |
| Method Detail |
|---|
T getInjectedObject(Class<?> injectionPointType)
T.
injectionPointType - the type of the injection target.
TObject getKey(InjectionTargetInformation injectionTargetInformation)
injectionTargetInformation - information about the injection point
NeedleTestcase.getInjectedObject(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||