*/
public <T extends ConfigBeanProxy> NotProcessed changed(TYPE type, Class<T> changedType, T changedInstance) {
switch (type) {
case ADD:
if (changedInstance instanceof Server) {
Server server = (Server) changedInstance;
String serverName = server.getName();
DomainRoot domainRootProxy = ProxyFactory.getInstance(mMBeanServer).getDomainRootProxy(false);
MetadataImpl meta = new MetadataImpl();
meta.setCorrespondingConfig(domainRootProxy.getDomain().as(Domain.class).getServers().getServer().get(serverName).objectName());
final DASJ2EEServerImpl impl = new DASJ2EEServerImpl(getJ2EEDomain(), meta);
ObjectName serverObjectName = new ObjectNameBuilder(mMBeanServer, getJ2EEDomain()).buildChildObjectName(J2EETypes.J2EE_SERVER, serverName);
try {
mMBeanServer.registerMBean(impl, serverObjectName).getObjectName();
}
catch (JMException e) {
throw new Error(e);
}
}
break;
case REMOVE:
if (changedInstance instanceof Server) {
Server server = (Server) changedInstance;
String serverName = server.getName();
ObjectName serverObjectName = new ObjectNameBuilder(mMBeanServer, getJ2EEDomain()).buildChildObjectName(J2EETypes.J2EE_SERVER, serverName);
try {
Set serverSet = mMBeanServer.queryNames(new ObjectName(serverObjectName.toString() + ",*"), null);