info.magnolia.cms.license
Class LicenseFileExtractor

java.lang.Object
  extended by info.magnolia.cms.license.LicenseFileExtractor

public class LicenseFileExtractor
extends Object

Extracts license information from the info/magnolia/cms/license/license.xml file.

Version:
1.1
Author:
Sameer Charles

Field Summary
static String BUILD_NUMBER
           
static String EDITION
           
static String IMPLEMENTATION_VERSION
          Same as VERSION_NUMBER, but read from the manifest.
static String PRODUCT_DOMAIN
           
static String PROVIDER
           
static String PROVIDER_ADDRESS
           
static String PROVIDER_EMAIL
           
static String VERSION_NUMBER
           
 
Constructor Summary
LicenseFileExtractor()
           
 
Method Summary
 String get(String id)
           
 Map getEntries()
           
static LicenseFileExtractor getInstance()
           
 String getOSName()
           
 String getVersionFromManifest()
          Returns the current magnolia version, read from the jar Manifest.
 void init()
           
 void init(InputStream in)
           
 void printVersionInfo()
          Print version info to System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_NUMBER

public static final String VERSION_NUMBER
See Also:
Constant Field Values

IMPLEMENTATION_VERSION

public static final String IMPLEMENTATION_VERSION
Same as VERSION_NUMBER, but read from the manifest.

See Also:
Constant Field Values

BUILD_NUMBER

public static final String BUILD_NUMBER
See Also:
Constant Field Values

PROVIDER

public static final String PROVIDER
See Also:
Constant Field Values

PROVIDER_ADDRESS

public static final String PROVIDER_ADDRESS
See Also:
Constant Field Values

PROVIDER_EMAIL

public static final String PROVIDER_EMAIL
See Also:
Constant Field Values

EDITION

public static final String EDITION
See Also:
Constant Field Values

PRODUCT_DOMAIN

public static final String PRODUCT_DOMAIN
See Also:
Constant Field Values
Constructor Detail

LicenseFileExtractor

public LicenseFileExtractor()
Method Detail

getInstance

public static LicenseFileExtractor getInstance()

get

public String get(String id)

getEntries

public Map getEntries()

getOSName

public String getOSName()

init

public void init()

init

public void init(InputStream in)

getVersionFromManifest

public String getVersionFromManifest()
Returns the current magnolia version, read from the jar Manifest. This will return null if classes are not inside a jar.

Returns:
implementation version, read from the manifest file.

printVersionInfo

public void printVersionInfo()
Print version info to System.out.



Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.