Invocation API 1.1.0.Final

org.jboss.invocation
Class ImmediateInterceptorFactory

java.lang.Object
  extended by org.jboss.invocation.ImmediateInterceptorFactory
All Implemented Interfaces:
Serializable, InterceptorFactory

public final class ImmediateInterceptorFactory
extends Object
implements InterceptorFactory, Serializable

An interceptor factory which returns the same instance, always.

Author:
David M. Lloyd
See Also:
Serialized Form

Constructor Summary
ImmediateInterceptorFactory(Interceptor interceptor)
          Construct a new instance.
 
Method Summary
 Interceptor create(InterceptorFactoryContext context)
          Create the interceptor instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmediateInterceptorFactory

public ImmediateInterceptorFactory(Interceptor interceptor)
Construct a new instance.

Parameters:
interceptor - the interceptor to return
Method Detail

create

public Interceptor create(InterceptorFactoryContext context)
Create the interceptor instance.

Specified by:
create in interface InterceptorFactory
Parameters:
context - the interceptor factory context
Returns:
the interceptor instance

toString

public String toString()
Overrides:
toString in class Object

Invocation API 1.1.0.Final

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