Package org.jboss.dependency.plugins

Examples of org.jboss.dependency.plugins.AbstractControllerContext


      return result;
   }
  
   protected ControllerContext createControllerContext(Object name, Object... aliases)
   {
      AbstractControllerContext result = new AbstractControllerContext(name, new MockControllerContextActions());
      result.setAliases(createAliases(aliases));
      return result;
   }
View Full Code Here


      Method[] methods = DependencyInfo.class.getDeclaredMethods();
      for(int i = numberOfInvocations; i >= 0; i--)
      {
         for (Method method : methods)
         {
            AbstractControllerContext context = new AbstractControllerContext(
                  method.getName(),
                  new MockControllerContextActions(),
                  ProxyDependencyInfo.createDependencyInfo(method, i)
            );
            try
            {
               install(context);
               assertTrue(context.getName().toString(), ControllerState.ERROR.equals(context.getState()) || ControllerState.INSTALLED.equals(context.getState()));
            }
            catch (Throwable t)
            {
               assertEquals("getLifecycleCallbacks", method.getName());
               assertInstanceOf(t, RuntimeException.class);
View Full Code Here

      }
   }

   protected ControllerContext createControllerContext(Object name, ControllerContextActions actions)
   {
      return new AbstractControllerContext(name, actions);
   }
View Full Code Here

TOP

Related Classes of org.jboss.dependency.plugins.AbstractControllerContext

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.