Examples of Version


Examples of org.hibernate.ejb.test.pack.defaultpar.Version

  public void testDefaultPar() throws Exception {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar", new HashMap() );
    EntityManager em = emf.createEntityManager();
    ApplicationServer as = new ApplicationServer();
    as.setName( "JBoss AS" );
    Version v = new Version();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    Mouse mouse = new Mouse();
    mouse.setName( "mickey" );
    em.getTransaction().begin();
    em.persist( as );
View Full Code Here

Examples of org.hornetq.core.version.Version

   {
      boolean incompatibleVersion = false;
      Packet response;
      try
      {
         Version version = server.getVersion();
         int[] compatibleList = version.getCompatibleVersionList();
         boolean isCompatibleClient = false;
         for (int i = 0; i < compatibleList.length; i++)
         {
            if (compatibleList[i] == request.getVersion())
            {
               isCompatibleClient = true;
               break;
            }
         }

         if (!isCompatibleClient)
         {
            log.warn("Client with version " + request.getVersion() +
                     " and address " +
                     connection.getRemoteAddress() +
                     " is not compatible with server version " +
                     version.getFullVersion() +
                     ". " +
                     "Please ensure all clients and servers are upgraded to the same version for them to " +
                     "interoperate properly");
            throw new HornetQException(HornetQException.INCOMPATIBLE_CLIENT_SERVER_VERSIONS,
                                       "Server and client versions incompatible");
View Full Code Here

Examples of org.jahia.utils.Version



  private void verifyJavaVersion(String supportedJDKVersions) throws JahiaInitializationException {
        if (supportedJDKVersions != null) {
                Version currentJDKVersion;
                try {
                    currentJDKVersion = new Version(System.getProperty("java.version"));
                    if (!isSupportedJDKVersion(currentJDKVersion, supportedJDKVersions)) {
                        StringBuffer jemsg = new StringBuffer();
                        jemsg.append("WARNING<br/>\n");
                        jemsg.append(
                            "You are using an unsupported JDK version\n");
View Full Code Here

Examples of org.jasig.portal.tools.versioning.Version

        ChannelStaticData staticData = getStaticData();
        String componentFunctionalName = (String) staticData
                .get("componentFunctionalName");

        Version componentVersion = versionsManager
                .getVersion(componentFunctionalName);

        String version = "unknown";

        if (componentVersion != null) {
            int majorVersion = componentVersion.getMajor();
            int minorVersion = componentVersion.getMinor();
            int microVersion = componentVersion.getMicro();

            StringBuffer versionStringBuffer = new StringBuffer();
            versionStringBuffer.append(majorVersion);
            versionStringBuffer.append(".");
            versionStringBuffer.append(minorVersion);
View Full Code Here

Examples of org.jasig.portal.version.om.Version

            return true;
        if (obj == null || obj.hashCode() != this.hashCode())
            return false;
        if (!(obj instanceof Version))
            return false;
        Version other = (Version) obj;
        if (getMajor() != other.getMajor())
            return false;
        if (getMinor() != other.getMinor())
            return false;
        if (getPatch() != other.getPatch())
            return false;
        final Integer local = getLocal();
        final Integer oLocal = other.getLocal();
        if (local == null) {
            if (oLocal != null)
                return false;
        }
        else if (!local.equals(oLocal))
View Full Code Here

Examples of org.jboss.arquillian.container.jetty.embedded_7.VersionUtil.Version

{

   @Test
   public void shouldBeAbleToExtract() throws Exception
   {
      Version version = VersionUtil.extract("1.2");
      Assert.assertEquals(1, version.getMajor());
      Assert.assertEquals(2, version.getMinor());
   }
View Full Code Here

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

      super(name);
   }
  
   public void testDefaultVersion() throws Exception
   {
      Version version = Version.DEFAULT_VERSION;
      assertVersion(version, 0, 0, 0, null);
   }
View Full Code Here

Examples of org.jboss.forge.furnace.versions.Version

   private ModuleIdentifier findCompatibleInstalledModule(AddonId addonId)
   {
      ModuleIdentifier result = null;

      Addon addon = currentAddon.get();
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();

      for (AddonRepository repository : stateManager.getViewsOf(addon).iterator().next().getRepositories())
      {
         List<AddonId> enabled = repository.listEnabledCompatibleWithVersion(runtimeAPIVersion);
         for (AddonId id : enabled)
View Full Code Here

Examples of org.jboss.gravia.resource.Version

    private ResourceHandle installSharedResourceInternal(Context context, Resource resource) throws Exception {
        LOGGER.info("Installing shared resource: {}", resource);

        ResourceIdentity identity = resource.getIdentity();
        String symbolicName = identity.getSymbolicName();
        Version version = identity.getVersion();
        File modulesDir = injectedServerEnvironment.getValue().getModulesDir();
        File moduleDir = new File(modulesDir, symbolicName.replace(".", File.separator) + File.separator + version);
        if (moduleDir.exists())
            throw new IllegalStateException("Module dir already exists: " + moduleDir);

        ResourceContent content = resource.adapt(ResourceContent.class);
        IllegalStateAssertion.assertNotNull(content, "Cannot obtain content from: " + resource);

        // copy resource content
        moduleDir.mkdirs();
        File resFile = new File(moduleDir, symbolicName + "-" + version + ".jar");
        IOUtils.copyStream(content.getContent(), new FileOutputStream(resFile));

        ModuleIdentifier modid = ModuleIdentifier.create(symbolicName, version.toString());

        // generate module.xml
        File xmlFile = new File(moduleDir, "module.xml");
        Map<Requirement, Resource> mapping = context.getResourceMapping();
        String moduleXML = generateModuleXML(resFile, resource, modid, mapping);
View Full Code Here

Examples of org.jboss.jms.server.Version

         // no state set yet, initialize and configure it

         if(trace) { log.trace(connectionDelegate + " not configured, configuring ..."); }

         int serverID = connectionDelegate.getServerID();
         Version versionToUse = connectionDelegate.getVersionToUse();
         JMSRemotingConnection remotingConnection = connectionDelegate.getRemotingConnection();

         // install the consolidated remoting connection listener; it will be de-installed on
         // connection closing by ConnectionAspect
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.