public final class MethodInterceptorFactory extends Object implements InterceptorFactory
EMPTY_ARRAY
Constructor and Description |
---|
MethodInterceptorFactory(InterceptorInstanceFactory instanceFactory,
Method interceptorMethod)
Construct a new instance.
|
MethodInterceptorFactory(InterceptorInstanceFactory instanceFactory,
Method interceptorMethod,
boolean changeMethod)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Interceptor |
create(InterceptorFactoryContext context)
Create the interceptor instance.
|
public MethodInterceptorFactory(InterceptorInstanceFactory instanceFactory, Method interceptorMethod, boolean changeMethod)
instanceFactory
- the instance factory for the interceptor instanceinterceptorMethod
- the interceptor methodchangeMethod
- true
to change the method on the context to equal the given method, false
to leave it as-ispublic MethodInterceptorFactory(InterceptorInstanceFactory instanceFactory, Method interceptorMethod)
instanceFactory
- the instance factory for the interceptor instanceinterceptorMethod
- the interceptor methodpublic Interceptor create(InterceptorFactoryContext context)
create
in interface InterceptorFactory
context
- the interceptor factory contextCopyright © 2023 JBoss by Red Hat. All rights reserved.