Package org.jboss.invocation
Class SimpleInterceptorInstanceFactory
- java.lang.Object
-
- org.jboss.invocation.SimpleInterceptorInstanceFactory
-
- All Implemented Interfaces:
InterceptorInstanceFactory
public final class SimpleInterceptorInstanceFactory extends Object implements InterceptorInstanceFactory
Simple instance factory which just uses reflection to create an instance of the given class. Only one instance of the given class will be created per factory context.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description SimpleInterceptorInstanceFactory(Class<?> instanceClass)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateInstance(InterceptorFactoryContext context)Construct a new instance.
-
-
-
Constructor Detail
-
SimpleInterceptorInstanceFactory
public SimpleInterceptorInstanceFactory(Class<?> instanceClass)
Construct a new instance.- Parameters:
instanceClass- the instance class
-
-
Method Detail
-
createInstance
public Object createInstance(InterceptorFactoryContext context)
Construct a new instance.- Specified by:
createInstancein interfaceInterceptorInstanceFactory- Parameters:
context- the interceptor factory context- Returns:
- the instance
-
-