Package org.jboss.test.classloading.lifecycle.support.a

Examples of org.jboss.test.classloading.lifecycle.support.a.MockLifeCycleClassLoaderPolicyModule


      super(name);
   }

   protected void assertNoClassLoader(KernelControllerContext context) throws Exception
   {
      MockLifeCycleClassLoaderPolicyModule module = assertMockClassPolicyModule(context);
      ClassLoader cl = module.getClassLoader();
      assertNull("" + cl, cl);
   }
View Full Code Here


      assertNull("" + cl, cl);
   }

   protected ClassLoader assertClassLoader(KernelControllerContext context) throws Exception
   {
      MockLifeCycleClassLoaderPolicyModule module = assertMockClassPolicyModule(context);
      ClassLoader cl = module.getClassLoader();
      assertNotNull("Should be a classloader for " + module, cl);
      return cl;
   }
View Full Code Here

      return assertClassLoader(context);
   }

   protected MockLifeCycle assertLifeCycle(KernelControllerContext context) throws Exception
   {
      MockLifeCycleClassLoaderPolicyModule module = assertMockClassPolicyModule(context);
      MockLifeCycle result = (MockLifeCycle) module.getLifeCycle();
      assertNotNull(result);
      return result;
   }
View Full Code Here

      return result;
   }

   protected MockLifeCycleClassLoaderPolicyModule assertMockClassPolicyModule(KernelControllerContext context) throws Exception
   {
      MockLifeCycleClassLoaderPolicyModule module = (MockLifeCycleClassLoaderPolicyModule) context.getTarget();
      assertNotNull("Should be a module for " + context, module);
      return module;
   }
View Full Code Here

   {
      // Determine some properties
      String contextName = metaData.getName() + ":" + metaData.getVersion().toString();
     
      // Create the module
      MockLifeCycleClassLoaderPolicyModule mockModule = new MockLifeCycleClassLoaderPolicyModule(metaData, contextName);
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(contextName, mockModule.getClass().getName());
      builder.setConstructorValue(mockModule);
      builder.setMode(ControllerMode.MANUAL);
      builder.addConstructorParameter(MockClassLoadingMetaData.class.getName(), metaData);
      builder.addConstructorParameter(String.class.getName(), contextName);
      builder.setNoClassLoader();
View Full Code Here

TOP

Related Classes of org.jboss.test.classloading.lifecycle.support.a.MockLifeCycleClassLoaderPolicyModule

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.