Package org.jboss.classloader.plugins.system

Examples of org.jboss.classloader.plugins.system.DefaultClassLoaderSystem


    *
    * @return ClassLoaderSystem instance
    */
   public static ClassLoaderSystem getClassLoaderSystem()
   {
      DefaultClassLoaderSystem system = new DefaultClassLoaderSystem();
      ClassLoaderDomain defaultDomain = system.getDefaultDomain();
      defaultDomain.setParentPolicy(ParentPolicy.AFTER);
      return system;
   }
View Full Code Here


    *
    * @return the new classloading system
    */
   public static ClassLoaderSystem createMockClassLoaderSystem()
   {
      return new DefaultClassLoaderSystem();
   }
View Full Code Here

      AbstractBootstrap bootstrap = new BasicBootstrap();
      bootstrap.run();
      Kernel kernel = bootstrap.getKernel();
      controller = kernel.getController();

      system = new DefaultClassLoaderSystem();
      ClassLoaderDomain defaultDomain = system.getDefaultDomain();
      defaultDomain.setParentPolicy(ParentPolicy.BEFORE_BUT_JAVA_ONLY);

      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("ClassLoading", ClassLoading.class.getName());
      builder.addMethodInstallCallback("addModule", null, null, ControllerState.CONFIGURED, null);
View Full Code Here

      VirtualFile signedJarRoot = VFS.getRoot(signedJarURL);
      VirtualFile signedJar = signedJarRoot.getChild("wstx.jar");
      VFSClassLoaderPolicy policy = VFSClassLoaderPolicy.createVFSClassLoaderPolicy(signedJar);
      policy.setExportAll(ExportAll.ALL);
     
      ClassLoaderSystem system = new DefaultClassLoaderSystem();
      ClassLoader classLoader = system.registerClassLoaderPolicy(policy);
      
      Class<?> clazz = classLoader.loadClass("org.codehaus.stax2.validation.XMLValidator");
      assertNotNull(clazz);
      ProtectionDomain pd = clazz.getProtectionDomain();
      assertNotNull("Protection Domain is null: " + clazz , pd);
View Full Code Here

      AbstractBootstrap bootstrap = new BasicBootstrap();
      bootstrap.run();
      Kernel kernel = bootstrap.getKernel();
      controller = kernel.getController();

      system = new DefaultClassLoaderSystem();
      ClassLoaderDomain defaultDomain = system.getDefaultDomain();
      defaultDomain.setParentPolicy(ParentPolicy.BEFORE_BUT_JAVA_ONLY);

      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("ClassLoading", ClassLoading.class.getName());
      builder.addMethodInstallCallback("addModule", null, null, ControllerState.CONFIGURED, null);
View Full Code Here

   }

   protected DeployerClient getMainDeployer(Deployer... deployers)
   {
      ClassLoading classLoading = new ClassLoading();
      system = new DefaultClassLoaderSystem();
      system.getDefaultDomain().setParentPolicy(ParentPolicy.BEFORE_BUT_JAVA_ONLY);

      deployer1 = new MockClassLoaderDescribeDeployer();
      deployer1.setClassLoading(classLoading);
View Full Code Here

    * @param policy the policy
    * @return the clazz loaded from the new classloading system
    */
   public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderPolicy policy)
   {
      ClassLoaderSystem system = new DefaultClassLoaderSystem();
      return initializeClassLoader(clazz, system, policy, getParentPackages());
   }
View Full Code Here

    * @param policy the policy
    * @return the clazz loaded from the new classloading system
    */
   public Class<?> initializeClassLoader(Class<?> clazz, ClassFilter parentFilter, ClassLoaderPolicy policy)
   {
      ClassLoaderSystem system = new DefaultClassLoaderSystem();
      return initializeClassLoader(clazz, system, parentFilter, policy);
   }
View Full Code Here

   protected DeployerClient getMainDeployer()
   {
      AbstractJDKChecker.getExcluded().add(VFSClassLoaderDependenciesTest.class);
     
      ClassLoading classLoading = new ClassLoading();
      ClassLoaderSystem system = new DefaultClassLoaderSystem();
      system.getDefaultDomain().setParentPolicy(ParentPolicy.BEFORE_BUT_JAVA_ONLY);

      deployer1 = new VFSClassLoaderDescribeDeployer();
      deployer1.setClassLoading(classLoading);

      deployer2 = new TestLevelClassLoaderSystemDeployer();
View Full Code Here

    *
    * @return the new classloading system
    */
   public static ClassLoaderSystem createMockClassLoaderSystem()
   {
      return new DefaultClassLoaderSystem();
   }
View Full Code Here

TOP

Related Classes of org.jboss.classloader.plugins.system.DefaultClassLoaderSystem

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.