java.lang.Object
cloud.piranha.cdi.weld.WeldObjectInstanceManager
- All Implemented Interfaces:
ObjectInstanceManager
public class WeldObjectInstanceManager extends java.lang.Object implements ObjectInstanceManager
The Weld object instance manager.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
Constructors Constructor Description WeldObjectInstanceManager()
-
Method Summary
Modifier and Type Method Description <T extends Filter>
TcreateFilter(java.lang.Class<T> filterClass)
Create the Filter.<T extends java.util.EventListener>
TcreateListener(java.lang.Class<T> clazz)
Create the listener.<T extends Servlet>
TcreateServlet(java.lang.Class<T> servletClass)
Create the Servlet.
-
Constructor Details
-
WeldObjectInstanceManager
public WeldObjectInstanceManager()
-
-
Method Details
-
createFilter
Create the Filter.- Specified by:
createFilter
in interfaceObjectInstanceManager
- Type Parameters:
T
- the return type.- Parameters:
filterClass
- the Filter class.- Returns:
- the Filter.
- Throws:
ServletException
- when it fails to create the filter.
-
createListener
public <T extends java.util.EventListener> T createListener(java.lang.Class<T> clazz) throws ServletExceptionCreate the listener.- Specified by:
createListener
in interfaceObjectInstanceManager
- Type Parameters:
T
- the type.- Parameters:
clazz
- the class.- Returns:
- the Listener.
- Throws:
ServletException
- when it fails to create the listener.
-
createServlet
public <T extends Servlet> T createServlet(java.lang.Class<T> servletClass) throws ServletExceptionCreate the Servlet.- Specified by:
createServlet
in interfaceObjectInstanceManager
- Type Parameters:
T
- the type.- Parameters:
servletClass
- the Servlet class.- Returns:
- the Servlet.
- Throws:
ServletException
- when it fails to create the servlet.
-