Package org.jboss.classloading.spi.version

Examples of org.jboss.classloading.spi.version.VersionRange


    */
   @CompositeValue(ignore=true)
   @XmlTransient
   public void setFrom(Object fromVersion)
   {
      versionRange = new VersionRange(fromVersion, versionRange.isLowInclusive(), versionRange.getHigh(), versionRange.isHighInclusive());
   }
View Full Code Here


    */
   @CompositeKey
   @XmlAttribute(name="from-inclusive")
   public void setFromVersionInclusive(boolean fromVersionInclusive)
   {
      versionRange = new VersionRange(versionRange.getLow(), fromVersionInclusive, versionRange.getHigh(), versionRange.isHighInclusive());
   }
View Full Code Here

    */
   @CompositeValue(ignore=true)
   @XmlTransient
   public void setTo(Object toVersion)
   {
      versionRange = new VersionRange(versionRange.getLow(), versionRange.isLowInclusive(), toVersion, versionRange.isHighInclusive());
   }
View Full Code Here

    */
   @CompositeKey
   @XmlAttribute(name="to-inclusive")
   public void setToVersionInclusive(boolean toVersionInclusive)
   {
      versionRange = new VersionRange(versionRange.getLow(), versionRange.isLowInclusive(), versionRange.getHigh(), toVersionInclusive);
   }
View Full Code Here

    */
   @CompositeValue(ignore=true)
   @XmlAttribute(name="version")
   public void setVersion(Version version)
   {
      versionRange = new VersionRange(version, true, version, true);
   }
View Full Code Here

      String otherName = otherRequirement.getName();
      if (name.equals(otherName) == false)
         return true;

      // Check the version ranges are consistent
      VersionRange range = getVersionRange();
      VersionRange otherRange = otherRequirement.getVersionRange();
      return range.isConsistent(otherRange);
   }
View Full Code Here

      String otherName = otherRequirement.getName();
      if (name.equals(otherName) == false)
         return true;

      // Check the version ranges are consistent
      VersionRange range = getVersionRange();
      VersionRange otherRange = otherRequirement.getVersionRange();
      return range.isConsistent(otherRange);
   }
View Full Code Here

      test.setExportAll(ExportAll.ALL);
      test.setImportAll(true);
      test.setJ2seClassLoadingCompliance(false);
      test.getCapabilities().addCapability(factory.createModule("module", "1.0.0"));
      test.getCapabilities().addCapability(factory.createPackage("package", "1.0.0"));
      test.getRequirements().addRequirement(factory.createRequireModule("module", new VersionRange("1.0.0", "2.0.0")));
      test.getRequirements().addRequirement(factory.createRequireModule("package", new VersionRange("1.0.0", "2.0.0")));
      ClassLoadingMetaData other = serializeDeserialize(test, ClassLoadingMetaData.class);
      assertEquals(test, other);
   }
View Full Code Here

         ClassLoader clA = assertClassLoader(contextA);
         assertLoadClass(A.class, clA);
         assertLoadClassFail(B.class, clA);

         MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
         b.getRequirements().addRequirement(factory.createRequireModule("ModuleA", new VersionRange("1.0.0", "2.0.0")));
         b.setPathsAndPackageNames(B.class);
         KernelControllerContext contextB = install(b);
         try
         {
            assertLoadClass(A.class, clA);
View Full Code Here

         ClassLoader clA = assertClassLoader(contextA);
         assertLoadClass(A.class, clA);
         assertLoadClassFail(B.class, clA);

         MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
         b.getRequirements().addRequirement(factory.createRequireModule("ModuleA", new VersionRange("1.0.0", "2.0.0")));
         b.setPathsAndPackageNames(B.class);
         KernelControllerContext contextB = install(b);
         try
         {
            assertLoadClass(A.class, clA);
View Full Code Here

TOP

Related Classes of org.jboss.classloading.spi.version.VersionRange

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.