com.aurorasoftworks.signal.runtime.ui.mvc
Class AbstractControllerMethodInterceptor

java.lang.Object
  extended by com.aurorasoftworks.signal.runtime.ui.mvc.AbstractControllerMethodInterceptor
All Implemented Interfaces:
IBeanProcessor, IContextAware
Direct Known Subclasses:
AbstractDispatcher

public abstract class AbstractControllerMethodInterceptor
extends java.lang.Object
implements IBeanProcessor, IContextAware


Nested Class Summary
protected  class AbstractControllerMethodInterceptor.ControllerMethodInterceptor
           
protected  class AbstractControllerMethodInterceptor.FlowCallerMethodInterceptor
           
 
Constructor Summary
AbstractControllerMethodInterceptor()
           
 
Method Summary
 IContext getContext()
           
protected  IProxy getControllerProxy(IController ctl)
           
protected  IMethodInterceptor[] getFlowCallerHandlers()
           
protected  IProxyFactory getProxyFactory()
           
protected  boolean isController(IBeanReference ref)
           
protected abstract  java.lang.Object onControllerMethodInvoked(IController controller, IMethodHandler handler, java.lang.Object[] args)
           
protected abstract  java.lang.Object onFlowCallerMethodInvoked(IController controller, IMethodHandler handler, java.lang.Object[] args)
           
 java.lang.Object postProcessBean(IBeanReference ref)
           
 java.lang.Object preProcessBean(IBeanReference ref)
          No-op.
 void setContext(IContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractControllerMethodInterceptor

public AbstractControllerMethodInterceptor()
Method Detail

getProxyFactory

protected IProxyFactory getProxyFactory()

onControllerMethodInvoked

protected abstract java.lang.Object onControllerMethodInvoked(IController controller,
                                                              IMethodHandler handler,
                                                              java.lang.Object[] args)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

onFlowCallerMethodInvoked

protected abstract java.lang.Object onFlowCallerMethodInvoked(IController controller,
                                                              IMethodHandler handler,
                                                              java.lang.Object[] args)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

preProcessBean

public java.lang.Object preProcessBean(IBeanReference ref)
                                throws java.lang.Exception
No-op. Actual processing is implemented in #postProcessBean(String, Object)

Specified by:
preProcessBean in interface IBeanProcessor
Throws:
java.lang.Exception

postProcessBean

public java.lang.Object postProcessBean(IBeanReference ref)
                                 throws java.lang.Exception
Specified by:
postProcessBean in interface IBeanProcessor
Throws:
java.lang.Exception

isController

protected boolean isController(IBeanReference ref)

getControllerProxy

protected IProxy getControllerProxy(IController ctl)

getFlowCallerHandlers

protected IMethodInterceptor[] getFlowCallerHandlers()

getContext

public IContext getContext()

setContext

public void setContext(IContext context)
Specified by:
setContext in interface IContextAware


Copyright © 2010. All Rights Reserved.