Package org.glassfish.jersey.inject.hk2
Class DelayedHk2InjectionManager
java.lang.Object
org.glassfish.jersey.inject.hk2.DelayedHk2InjectionManager
- All Implemented Interfaces:
InjectionManager
Implementation of
InjectionManager that is able to delay service's registration
and injection to completeRegistration() phase. During the Jersey bootstrap just keep the bindings and other
operation for a later use.- Author:
- Petr Bouda
-
Method Summary
Modifier and TypeMethodDescriptionvoid<U> U<U> UcreateAndInitialize(Class<U> clazz) createForeignDescriptor(Binding binding) <T> List<T>getAllInstances(Type clazz) <T> List<ServiceHolder<T>>getAllServiceHolders(Class<T> contract, Annotation... qualifiers) <T> TgetInstance(Class<T> clazz) <T> TgetInstance(Class<T> clazz, Annotation... annotations) <T> TgetInstance(Class<T> clazz, String classAnalyzer) <T> TgetInstance(Type clazz) getInstance(ForeignDescriptor foreignDescriptor) voidvoidbooleanisRegistrable(Class<?> clazz) booleanvoidpreDestroy(Object preDestroyMe) voidvoidvoidvoidvoidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.jersey.internal.inject.InjectionManager
getRuntimeType
-
Method Details
-
register
-
register
-
register
-
register
- Throws:
IllegalArgumentException
-
completeRegistration
- Throws:
IllegalStateException
-
getServiceLocator
-
isRegistrable
- Specified by:
isRegistrablein interfaceInjectionManager
-
getAllServiceHolders
- Specified by:
getAllServiceHoldersin interfaceInjectionManager
-
getInstance
- Specified by:
getInstancein interfaceInjectionManager
-
getInstance
- Specified by:
getInstancein interfaceInjectionManager
-
getInstance
- Specified by:
getInstancein interfaceInjectionManager
-
getInstance
- Specified by:
getInstancein interfaceInjectionManager
-
getInstance
- Specified by:
getInstancein interfaceInjectionManager
-
getAllInstances
- Specified by:
getAllInstancesin interfaceInjectionManager
-
preDestroy
- Specified by:
preDestroyin interfaceInjectionManager
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceInjectionManager
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceInjectionManager
-
create
- Specified by:
createin interfaceInjectionManager
-
createAndInitialize
- Specified by:
createAndInitializein interfaceInjectionManager
-
createForeignDescriptor
- Specified by:
createForeignDescriptorin interfaceInjectionManager
-
inject
- Specified by:
injectin interfaceInjectionManager
-
inject
- Specified by:
injectin interfaceInjectionManager
-