Class AbstractInterceptorVisitor
- java.lang.Object
-
- org.smooks.engine.delivery.interceptor.AbstractInterceptorVisitor
-
- All Implemented Interfaces:
ContentHandler
,InterceptorVisitor
,Visitor
- Direct Known Subclasses:
BridgeInterceptor
,ExceptionInterceptor
,ExecutionEventInterceptor
,InstrumentationInterceptor
,StaticProxyInterceptor
,StreamResultWriterInterceptor
,TextConsumerInterceptor
public abstract class AbstractInterceptorVisitor extends Object implements InterceptorVisitor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractInterceptorVisitor.Invocation<T extends Visitor>
protected static class
AbstractInterceptorVisitor.VisitAfterInvocation
protected static class
AbstractInterceptorVisitor.VisitBeforeInvocation
protected static class
AbstractInterceptorVisitor.VisitChildElementInvocation
protected static class
AbstractInterceptorVisitor.VisitChildTextInvocation
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationContext
applicationContext
protected Map<Class<?>,Optional<Visitor>>
invocationTargetCache
protected AtomicReference<ContentHandlerBinding<Visitor>>
target
protected AbstractInterceptorVisitor.VisitAfterInvocation
visitAfterInvocation
protected AbstractInterceptorVisitor.VisitBeforeInvocation
visitBeforeInvocation
protected AbstractInterceptorVisitor.VisitChildElementInvocation
visitChildElementInvocation
protected AbstractInterceptorVisitor.VisitChildTextInvocation
visitChildTextInvocation
protected ContentHandlerBinding<Visitor>
visitorBinding
-
Constructor Summary
Constructors Constructor Description AbstractInterceptorVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentHandlerBinding<Visitor>
getTarget()
ContentHandlerBinding<Visitor>
getVisitorBinding()
protected <T extends Visitor>
Objectintercept(AbstractInterceptorVisitor.Invocation<T> invocation, Object... args)
void
setVisitorBinding(ContentHandlerBinding<Visitor> visitorBinding)
-
-
-
Field Detail
-
visitChildTextInvocation
protected final AbstractInterceptorVisitor.VisitChildTextInvocation visitChildTextInvocation
-
visitChildElementInvocation
protected final AbstractInterceptorVisitor.VisitChildElementInvocation visitChildElementInvocation
-
visitAfterInvocation
protected final AbstractInterceptorVisitor.VisitAfterInvocation visitAfterInvocation
-
visitBeforeInvocation
protected final AbstractInterceptorVisitor.VisitBeforeInvocation visitBeforeInvocation
-
target
protected final AtomicReference<ContentHandlerBinding<Visitor>> target
-
visitorBinding
protected ContentHandlerBinding<Visitor> visitorBinding
-
applicationContext
@Inject protected ApplicationContext applicationContext
-
-
Method Detail
-
setVisitorBinding
public void setVisitorBinding(ContentHandlerBinding<Visitor> visitorBinding)
- Specified by:
setVisitorBinding
in interfaceInterceptorVisitor
-
getVisitorBinding
public ContentHandlerBinding<Visitor> getVisitorBinding()
- Specified by:
getVisitorBinding
in interfaceInterceptorVisitor
-
getTarget
public ContentHandlerBinding<Visitor> getTarget()
- Specified by:
getTarget
in interfaceInterceptorVisitor
-
intercept
protected <T extends Visitor> Object intercept(AbstractInterceptorVisitor.Invocation<T> invocation, Object... args)
-
-