ehcache

net.sf.ehcache.util
Class ProductInfo

java.lang.Object
  extended by net.sf.ehcache.util.ProductInfo

public class ProductInfo
extends Object

Build properties of the product

Author:
hhuynh

Constructor Summary
ProductInfo()
          Construct a default product info
ProductInfo(InputStream resource)
          Construct product info object from a resource input stream
ProductInfo(String resource)
          Construct product info object from a resource name
 
Method Summary
 void assertRequiredCoreVersionPresent()
          Assert that the current product is compatible with the version of ehcache available on the classpath
 String getBuildJdk()
           
 String getBuildRevision()
           
 String getBuildTime()
           
 String getName()
           
 String getPatchLevel()
           
 String getRequiredCoreVersion()
           
 String getVersion()
           
 boolean isEnterprise()
           
 String toString()
          returns long version of the build string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductInfo

public ProductInfo()
Construct a default product info


ProductInfo

public ProductInfo(String resource)
Construct product info object from a resource name

Parameters:
resource -

ProductInfo

public ProductInfo(InputStream resource)
Construct product info object from a resource input stream

Parameters:
resource -
Throws:
IOException
Method Detail

getName

public String getName()
Returns:
product name

getVersion

public String getVersion()
Returns:
version

getBuildJdk

public String getBuildJdk()
Returns:
jdk that was used

getBuildTime

public String getBuildTime()
Returns:
build timestamp

getBuildRevision

public String getBuildRevision()
Returns:
revision

getPatchLevel

public String getPatchLevel()
Returns:
patch number

getRequiredCoreVersion

public String getRequiredCoreVersion()
Returns:
required core version

isEnterprise

public boolean isEnterprise()
Returns:
true if the current product is an enterprise one

assertRequiredCoreVersionPresent

public void assertRequiredCoreVersionPresent()
Assert that the current product is compatible with the version of ehcache available on the classpath


toString

public String toString()
returns long version of the build string

Overrides:
toString in class Object

ehcache

Copyright 2001-2015, Terracotta, Inc.