@Service
@RunLevel(mode=1,
value=1)
public final class CombinedJavaConfigSystemPropertyListener
extends Object
implements org.glassfish.hk2.api.PostConstruct, org.jvnet.hk2.config.ConfigListener
This class is implemented so that the server restart is NOT required if a deployer wants to deploy an application and the application depends on a particular Java system property (-D) to be specified. As of now, the deployer specifies the system property and deploys the application and the application should find it when it does System.getProperty("property-name"). Here is the complete algorithm:
JavaConfig| Constructor and Description |
|---|
CombinedJavaConfigSystemPropertyListener() |
| Modifier and Type | Method and Description |
|---|---|
org.jvnet.hk2.config.UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events) |
void |
postConstruct() |
public CombinedJavaConfigSystemPropertyListener()
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
changed in interface org.jvnet.hk2.config.ConfigListenerCopyright © 2017. All rights reserved.