info.magnolia.cms.license
Class LicenseFileExtractor
java.lang.Object
info.magnolia.cms.license.LicenseFileExtractor
@Singleton
public class LicenseFileExtractor
- extends Object
Extracts license information from the info/magnolia/cms/license/license.xml file.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LicenseFileExtractor
public LicenseFileExtractor()
getInstance
public static LicenseFileExtractor getInstance()
get
public String get(String id)
getEntries
public Map<String,String> 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–2014 Magnolia International Ltd.. All rights reserved.