Package org.strecks.lifecycle.impl

Examples of org.strecks.lifecycle.impl.LifecycleMethodReader


  }
 
  @Test
  public void testInitMethod() throws Exception
  {
    LifecycleMethodReader c = new LifecycleMethodReader();
    ActionWithLifecycleMethods actionBean = new ActionWithLifecycleMethods();
    c.readAnnotations(actionBean.getClass());
    final Method initMethod = c.getInitMethod();

    SimpleControllerAction action = new SimpleControllerAction();
    action.setInitMethod(initMethod);

    action.doInitMethod(actionBean);
View Full Code Here


  }
 
  @Test
  public void testCloseMethod() throws Exception
  {
    LifecycleMethodReader c = new LifecycleMethodReader();
    ActionWithLifecycleMethods actionBean = new ActionWithLifecycleMethods();
    c.readAnnotations(actionBean.getClass());
    final Method closeMethod = c.getCloseMethod();

    SimpleControllerAction action = new SimpleControllerAction();
    action.setCloseMethod(closeMethod);

    action.doCloseMethod(actionBean);
View Full Code Here

  private LifecycleMethodReader reader;

  @BeforeMethod
  public void setUp()
  {
    reader = new LifecycleMethodReader();
  }
View Full Code Here

      interceptorAware.populateController((InterceptorAware) controllerAction);
    }
   
    if (controllerAction instanceof LifecycleMethodAware)
    {
      LifecycleMethodReader initMethodReader = new LifecycleMethodReader();
      initMethodReader.readAnnotations(actionBeanClass);

      initMethodReader.populateController((LifecycleMethodAware) controllerAction);
    }

    readControllerClassAnnotations(actionBeanClass, controllerAction);

    return strutsAction;
View Full Code Here

TOP

Related Classes of org.strecks.lifecycle.impl.LifecycleMethodReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.