Invocation API 1.1.0.Final

org.jboss.invocation
Class SimpleInterceptorInstanceFactory

java.lang.Object
  extended by 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
SimpleInterceptorInstanceFactory(Class<?> instanceClass)
          Construct a new instance.
 
Method Summary
 Object createInstance(InterceptorFactoryContext context)
          Construct a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
createInstance in interface InterceptorInstanceFactory
Parameters:
context - the interceptor factory context
Returns:
the instance

Invocation API 1.1.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.