Class AMXJ2EEStartupService
- java.lang.Object
-
- org.glassfish.admin.amx.impl.j2ee.loader.AMXJ2EEStartupService
-
- All Implemented Interfaces:
AMXLoader
,org.glassfish.hk2.api.PostConstruct
,org.glassfish.hk2.api.PreDestroy
,ConfigListener
@Service public final class AMXJ2EEStartupService extends Object implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, AMXLoader, ConfigListener
Startup service that loads support for AMX config MBeans. How this is to be triggered is not yet clear.
-
-
Field Summary
-
Fields inherited from interface org.glassfish.api.amx.AMXLoader
LOADER_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AMXJ2EEStartupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEvents
changed(PropertyChangeEvent[] propertyChangeEvents)
Notification that @Configured objects that were injected have changedApplicationRegistry
getApplicationRegistry()
InjectedValues
getCore()
ObjectName
getJ2EEDomain()
ObjectName
loadAMXMBeans()
Loader a hierarchy of AMX MBeans, returning the ObjectName of the root of the hierarchy.void
postConstruct()
void
preDestroy()
void
unloadAMXMBeans()
Unload (unregister) AMX MBeans.
-
-
-
Method Detail
-
getCore
public InjectedValues getCore()
-
getApplicationRegistry
public ApplicationRegistry getApplicationRegistry()
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
changed
public UnprocessedChangeEvents changed(PropertyChangeEvent[] propertyChangeEvents)
Description copied from interface:ConfigListener
Notification that @Configured objects that were injected have changed- Specified by:
changed
in interfaceConfigListener
- Parameters:
propertyChangeEvents
- list of changes- Returns:
- the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
-
preDestroy
public void preDestroy()
- Specified by:
preDestroy
in interfaceorg.glassfish.hk2.api.PreDestroy
-
getJ2EEDomain
public ObjectName getJ2EEDomain()
-
loadAMXMBeans
public ObjectName loadAMXMBeans()
Description copied from interface:AMXLoader
Loader a hierarchy of AMX MBeans, returning the ObjectName of the root of the hierarchy.- Specified by:
loadAMXMBeans
in interfaceAMXLoader
-
unloadAMXMBeans
public void unloadAMXMBeans()
Description copied from interface:AMXLoader
Unload (unregister) AMX MBeans.- Specified by:
unloadAMXMBeans
in interfaceAMXLoader
-
-