Package org.strecks.lifecycle.impl

Examples of org.strecks.lifecycle.impl.LifecycleMethodReader.readAnnotations()


  @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);
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);
View Full Code Here

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

      initMethodReader.populateController((LifecycleMethodAware) controllerAction);
    }

    readControllerClassAnnotations(actionBeanClass, controllerAction);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.