java.lang.Object
org.apache.wicket.cdi.NonContextual<T>
- Type Parameters:
T
-
Manages lifecycle of non-contextual (non-CDI-managed) objects
- Author:
- igor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Injects the instancestatic <T> NonContextual<T>
Factory method for creating non-contextual instancesstatic <T> NonContextual<T>
of
(T t) Convenience factory method for an instance, seeof(Class)
.void
postConstruct
(T instance) Injects the instance and calls anyPostConstruct
methodsvoid
preDestroy
(T instance) Calls anyPreDestroy
methods and destroys any injected dependencies that need to be destroyed.static void
undeploy()
Undeploys the looked up bean manager from cache
-
Method Details
-
undeploy
Undeploys the looked up bean manager from cache -
of
Convenience factory method for an instance, seeof(Class)
.- Type Parameters:
T
-- Parameters:
t
-- Returns:
- The NonContextual for the instance's class
-
of
Factory method for creating non-contextual instances- Type Parameters:
T
-- Parameters:
clazz
-- Returns:
- The NonContextual for the given class
-
postConstruct
Injects the instance and calls anyPostConstruct
methods- Parameters:
instance
-
-
inject
Injects the instance- Parameters:
instance
-
-
preDestroy
Calls anyPreDestroy
methods and destroys any injected dependencies that need to be destroyed.- Parameters:
instance
-
-