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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleInterceptorInstanceFactory
public SimpleInterceptorInstanceFactory(Class<?> instanceClass)
- Construct a new instance.
- Parameters:
instanceClass
- the instance class
createInstance
public Object createInstance(InterceptorFactoryContext context)
- Construct a new instance.
- Specified by:
createInstance
in interface InterceptorInstanceFactory
- Parameters:
context
- the interceptor factory context
- Returns:
- the instance
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.