Top Description Fields Constructors Methods
net.sf.ehcache.util

public Class ProductInfo

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.Properties, net.sf.ehcache.CacheException

Build properties of the product
Author
hhuynh

Field Summary

Modifier and TypeField and Description
private static final String
private final Properties
private static final String

Constructor Summary

AccessConstructor and Description
public
ProductInfo()

Construct a default product info

public
ProductInfo(String resource)

Construct product info object from a resource name

public
ProductInfo(InputStream
the resource
resource
)

Construct product info object from a resource input stream

Method Summary

Modifier and TypeMethod and Description
public void
assertRequiredCoreVersionPresent()

Assert that the current product is compatible with the version of ehcache available on the classpath

public String

Returns:

jdk that was used
getBuildJdk
()

public String

Returns:

revision
getBuildRevision
()

public String

Returns:

build timestamp
getBuildTime
()

public String

Returns:

product name
getName
()

public String

Returns:

patch number
getPatchLevel
()

public String

Returns:

required core version
getRequiredCoreVersion
()

public String

Returns:

version
getVersion
()

public boolean

Returns:

true if the current product is an enterprise one
isEnterprise
()

private void
public String
toString()

Overrides java.lang.Object.toString.

returns long version of the build string
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

EHCACHE_VERSION_RESOURCEback to summary
private static final String EHCACHE_VERSION_RESOURCE
propsback to summary
private final Properties props
UNKNOWNback to summary
private static final String UNKNOWN

Constructor Detail

ProductInfoback to summary
public ProductInfo()

Construct a default product info

ProductInfoback to summary
public ProductInfo(String resource)

Construct product info object from a resource name

ProductInfoback to summary
public ProductInfo(InputStream resource)

Construct product info object from a resource input stream

Parameters
resource:InputStream

the resource

Method Detail

assertRequiredCoreVersionPresentback to summary
public void assertRequiredCoreVersionPresent()

Assert that the current product is compatible with the version of ehcache available on the classpath

getBuildJdkback to summary
public String getBuildJdk()
Returns:String

jdk that was used

getBuildRevisionback to summary
public String getBuildRevision()
Returns:String

revision

getBuildTimeback to summary
public String getBuildTime()
Returns:String

build timestamp

getNameback to summary
public String getName()
Returns:String

product name

getPatchLevelback to summary
public String getPatchLevel()
Returns:String

patch number

getRequiredCoreVersionback to summary
public String getRequiredCoreVersion()
Returns:String

required core version

getVersionback to summary
public String getVersion()
Returns:String

version

isEnterpriseback to summary
public boolean isEnterprise()
Returns:boolean

true if the current product is an enterprise one

parseProductInfoback to summary
private void parseProductInfo(String resource)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

returns long version of the build string

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override