public class JMX extends TopLevelService
Starts MBean server and automatically registers any class annotated with @MBean
.
Constructor and Description |
---|
JMX() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this services, it won't be started again.
|
com.google.inject.Module |
configure()
Returns
Module which specifies this service dependencies and what it provides
to other services. |
void |
start()
Starts this service.
|
getSubServices, stop
getCombineChildren, getCombineSelf, getId, toString
public JMX()
public com.google.inject.Module configure()
Service
Module
which specifies this service dependencies and what it provides
to other services.configure
in interface Service
configure
in class ConfigurableService
public void start()
Service
All fields marked with Inject
will be injected before execution of this method.
This method should be used to start functionalities which are used outside this application.
Functionality that is exported to other services should be started in Service.configure()
method
or from Provider
to correctly handle dependencies between services.
start
in interface Service
start
in class ConfigurableService
public void close()
Service
close
in interface AutoCloseable
close
in interface Service
close
in class ConfigurableService
Copyright © 2013 Atteo. All rights reserved.