|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.guice.plugins.GuiceInjectorFactory
public class GuiceInjectorFactory
Guice Injector factory.
| Method Summary | ||
|---|---|---|
static com.google.inject.Injector |
createInjector(org.jboss.kernel.Kernel kernel,
GuiceObject... guiceObjects)
Create injector. |
|
void |
destroy()
Uninstall Guice objects. |
|
|
findBindingsByType(com.google.inject.TypeLiteral<T> type)
|
|
|
getBinding(com.google.inject.Key<T> key)
|
|
Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> |
getBindings()
|
|
|
getInstance(Class<T> type)
|
|
|
getInstance(com.google.inject.Key<T> key)
|
|
|
getProvider(Class<T> type)
|
|
|
getProvider(com.google.inject.Key<T> key)
|
|
void |
injectMembers(Object o)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.google.inject.Injector createInjector(org.jboss.kernel.Kernel kernel,
GuiceObject... guiceObjects)
kernel - the kernelguiceObjects - guice objects
public void destroy()
public void injectMembers(Object o)
injectMembers in interface com.google.inject.Injectorpublic Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getBindings()
getBindings in interface com.google.inject.Injectorpublic <T> com.google.inject.Binding<T> getBinding(com.google.inject.Key<T> key)
getBinding in interface com.google.inject.Injectorpublic <T> List<com.google.inject.Binding<T>> findBindingsByType(com.google.inject.TypeLiteral<T> type)
findBindingsByType in interface com.google.inject.Injectorpublic <T> com.google.inject.Provider<T> getProvider(com.google.inject.Key<T> key)
getProvider in interface com.google.inject.Injectorpublic <T> com.google.inject.Provider<T> getProvider(Class<T> type)
getProvider in interface com.google.inject.Injectorpublic <T> T getInstance(com.google.inject.Key<T> key)
getInstance in interface com.google.inject.Injectorpublic <T> T getInstance(Class<T> type)
getInstance in interface com.google.inject.Injector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||