Examples of createRequirePackage()


Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testDynamicRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequireModule("test1", new VersionRange("1.0.0"), false, false, true),
                                 factory.createRequirePackage("test1", new VersionRange("1.0.0"), false, false, true));
   }

   public void testUsesRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   }
  
   public void testCreateRequirePackageNoVersion() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      Requirement test = factory.createRequirePackage("test");
      assertEquals(new PackageRequirement("test"), test);
   }
  
   public void testCreateRequirePackageVersioned() throws Exception
   {
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

  
   public void testCreateRequirePackageVersioned() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequirePackage("test", range);
      assertEquals(new PackageRequirement("test", range), test);
   }
  
   public void testCreateRequirePackageVersionedOptionalReExportDynamic() throws Exception
   {
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

  
   public void testCreateRequirePackageVersionedOptionalReExportDynamic() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequirePackage("test", range, true, true, true);
      PackageRequirement expected = new PackageRequirement("test", range);
      expected.setOptional(true);
      expected.setReExport(true);
      expected.setDynamic(true);
      assertEquals(expected, test);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

            MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
            b.setDomain("ChildDomain");
            b.setJ2seClassLoadingCompliance(true);
            b.setPathsAndPackageNames(B.class);
            b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
            KernelControllerContext contextB = install(b);
            try
            {
               ClassLoader clB = assertClassLoader(contextB);
               assertLoadClass(A.class, clParentA);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

            MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
            b.setDomain("ChildDomain");
            b.setJ2seClassLoadingCompliance(false);
            b.setPathsAndPackageNames(B.class);
            b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
            KernelControllerContext contextB = install(b);
            try
            {
               ClassLoader clB = assertClassLoader(contextB);
               assertLoadClass(A.class, clChildA);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

         MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
         b.setDomain("ChildDomain");
         b.setJ2seClassLoadingCompliance(false);
         b.setPathsAndPackageNames(B.class);
         b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
         KernelControllerContext contextB = install(b);
         try
         {
            ClassLoader clB = assertClassLoader(contextB);
            assertLoadClass(A.class, clParentA);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
      b.setDomain("ChildDomain");
      b.setJ2seClassLoadingCompliance(true);
      b.setPathsAndPackageNames(B.class);
      b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
      KernelControllerContext contextB = install(b);
      try
      {
         assertNoClassLoader(contextB);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
      b.setDomain("ChildDomain");
      b.setJ2seClassLoadingCompliance(false);
      b.setPathsAndPackageNames(B.class);
      b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
      KernelControllerContext contextB = install(b);
      try
      {
         assertNoClassLoader(contextB);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
      b.setDomain("ChildDomain");
      b.setJ2seClassLoadingCompliance(true);
      b.setPathsAndPackageNames(B.class);
      b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName()));
      KernelControllerContext contextB = install(b);
      try
      {
         assertNoClassLoader(contextB);
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.