use of org.exoplatform.management.jmx.impl.JMXManagementProvider in project kernel by exoplatform.
the class ManageableContainer method setParent.
/**
* {@inheritDoc}
*/
public void setParent(ExoContainer parent) {
this.parent = parent;
//
ManagementContextImpl parentCtx = null;
if (parent != null) {
parentCtx = (ManagementContextImpl) parent.getManagementContext();
}
//
if (parentCtx != null) {
server = parentCtx.container.server;
managementContext = new ManagementContextImpl(parentCtx, this);
} else {
server = findMBeanServer();
managementContext = new ManagementContextImpl(this);
addProvider(new JMXManagementProvider(server));
}
}
Aggregations