@Name(value="appNameFactory") @Scope(value=STATELESS) @Install(precedence=10) public class NuxeoProductNameFactory extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
PNAME_KEY
Deprecated.
Since 7.10. Use
Environment constants. |
static String |
PVERSION_KEY
Deprecated.
Since 7.10. Use
Environment constants. |
Constructor and Description |
---|
NuxeoProductNameFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentYearAsString()
Gives current year used in copyright (in case this needs to be extracted from a configuration in the future).
|
String |
getNuxeoProductName() |
String |
getNuxeoProductVersion() |
@Deprecated public static String PNAME_KEY
Environment
constants.@Deprecated public static String PVERSION_KEY
Environment
constants.public NuxeoProductNameFactory()
@Factory(value="nuxeoApplicationName", scope=APPLICATION) public String getNuxeoProductName()
@Factory(value="nuxeoApplicationVersion", scope=APPLICATION) public String getNuxeoProductVersion()
@Factory(value="copyrightCurrentYear", scope=APPLICATION) public String getCurrentYearAsString()
Copyright © 2015 Nuxeo SA. All rights reserved.