@Service
@RunLevel(mode=1,
value=1)
public final class CombinedJavaConfigSystemPropertyListener
extends Object
implements org.glassfish.hk2.api.PostConstruct, 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 |
|---|---|
UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changed
|
void |
postConstruct() |
public CombinedJavaConfigSystemPropertyListener()
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
ConfigListenerchanged in interface ConfigListenerevents - list of changesCopyright © 2019. All rights reserved.