Package org.jboss.invocation
Class ImmediateInterceptorFactory
- java.lang.Object
-
- 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
-
-
Field Summary
-
Fields inherited from interface org.jboss.invocation.InterceptorFactory
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description ImmediateInterceptorFactory(Interceptor interceptor)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interceptorcreate(InterceptorFactoryContext context)Create the interceptor instance.StringtoString()
-
-
-
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:
createin interfaceInterceptorFactory- Parameters:
context- the interceptor factory context- Returns:
- the interceptor instance
-
-