3395N/A/*
3395N/A * CDDL HEADER START
3395N/A *
3395N/A * The contents of this file are subject to the terms of the
3395N/A * Common Development and Distribution License, Version 1.0 only
3395N/A * (the "License"). You may not use this file except in compliance
3395N/A * with the License.
3395N/A *
6983N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/A * or http://forgerock.org/license/CDDLv1.0.html.
3395N/A * See the License for the specific language governing permissions
3395N/A * and limitations under the License.
3395N/A *
3395N/A * When distributing Covered Code, include this CDDL HEADER in each
6983N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/A * If applicable, add the following below this CDDL HEADER, with the
6983N/A * fields enclosed by brackets "[]" replaced with your own identifying
6983N/A * information:
3395N/A * Portions Copyright [yyyy] [name of copyright owner]
3395N/A *
3395N/A * CDDL HEADER END
3395N/A *
3395N/A *
5218N/A * Copyright 2008-2010 Sun Microsystems, Inc.
3395N/A */
3395N/A
3395N/Apackage org.opends.quicksetup.util;
3395N/A
3395N/A/**
3395N/A * This enumeration contains the different minimal java versions required
3395N/A * to run properly OpenDS. The versions specify a vendor and a java version.
3395N/A *
3395N/A */
3395N/Aenum CompatibleJava
3395N/A{
5218N/A JDK_SUN("Sun Microsystems Inc.", "1.6.0_10");
3395N/A private String vendor;
3395N/A private String version;
3395N/A
3395N/A /**
3395N/A * Private constructor.
3395N/A * @param vendor the JVM vendor.
3395N/A * @param version the JVM version.
3395N/A */
3395N/A private CompatibleJava(String vendor, String version)
3395N/A {
3395N/A this.vendor = vendor;
3395N/A this.version = version;
3395N/A }
3395N/A
3395N/A /**
3395N/A * Returns the version of this compatible java version.
3395N/A * @return the version of this compatible java version.
3395N/A */
3395N/A String getVersion()
3395N/A {
3395N/A return version;
3395N/A }
3395N/A
3395N/A /**
3395N/A * Returns the vendor of this compatible java version.
3395N/A * @return the vendor of this compatible java version.
3395N/A */
3395N/A String getVendor()
3395N/A {
3395N/A return vendor;
3395N/A }
3395N/A}