
com.speedment.SpeedmentVersion Maven / Gradle / Ivy
/**
*
* Copyright (c) 2006-2016, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.speedment;
import com.speedment.annotation.Api;
import static com.speedment.util.StaticClassUtil.instanceNotAllowed;
/**
* This class holds the parameters normally held in the JAR MANIFEST. By holding
* the values here, they will survive any jar modification process such as the
* Maven Shade Plugin.
*
* @author pemi
* @since 2.0
*/
@Api(version = "2.3")
public final class SpeedmentVersion {
private static final String IMPLEMENTATION_TITLE = "Speedment",
IMPLEMENTATION_VENDOR = "Speedment Inc.", // "Speedment, Inc." difficult to enter into POM because of ','
IMPLEMENTATION_VERSION = "2.3.5",
SPECIFICATION_VERSION = "2.3";
private static final boolean PRODUCTION_MODE = true;
/**
* Returns if this version is intended for production use.
*
* @return if this version is intended for production use
*/
public static boolean isProductionMode() {
return PRODUCTION_MODE;
}
/**
* Returns the non-null title of the Speedment framework.
*
* @return the title
*/
public static String getImplementationTitle() {
return IMPLEMENTATION_TITLE;
}
/**
* Returns the non-null name of the organization, vendor or company that
* provided this Speedment implementation.
*
* @return the non-null name of the organization, vendor or company that
* provided this Speedment implementation
*/
public static String getImplementationVendor() {
return IMPLEMENTATION_VENDOR;
}
/**
* Return the non-null version of this Speedment implementation. It consists
* of any string assigned by the vendor of this implementation and does not
* have any particular syntax specified or expected by the Java runtime. It
* may be compared for equality with other package version strings used for
* this implementation by this vendor for this package.
*
* @return the non-null version of this Speedment implementation
*/
public static String getImplementationVersion() {
return IMPLEMENTATION_VERSION;
}
/**
* Returns the non-null version number of the specification that this
* Speedment implements. This version string must be a sequence of
* nonnegative decimal integers separated by "."'s and may have leading
* zeros. When version strings are compared the most significant numbers are
* compared.
*
* @return the non-null version number of the specification that this
* Speedment implements
*/
public static String getSpecificationVersion() {
return SPECIFICATION_VERSION;
}
/**
* Utility classes should not be instantiated.
*/
private SpeedmentVersion() {
instanceNotAllowed(getClass());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy