/** * We replace ourself with an ObjectInstance in the stream. * This loses the agentId which isn't part of the spec. * * @return an ObjectInstance version of ourself * @exception ObjectStreamException for a serialization error */ private Object writeReplace() throws ObjectStreamException { return new ObjectInstance(getObjectName(), getClassName()); }
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException { if (!contains(name)) throw new InstanceNotFoundException(name + " not registered."); return new ServerObjectInstance(qualifyName(name), get(name).getResourceClassName(), delegate.getMBeanServerId()); }
public ObjectInstance getObjectInstance(ObjectName name) throws InstanceNotFoundException { if (!contains(name)) throw new InstanceNotFoundException(name + " not registered."); return new ServerObjectInstance(qualifyName(name), get(name).getResourceClassName(), delegate.getMBeanServerId()); }
/** * We replace ourself with an ObjectInstance in the stream. * This loses the agentId which isn't part of the spec. * * @return an ObjectInstance version of ourself * @exception ObjectStreamException for a serialization error */ private Object writeReplace() throws ObjectStreamException { return new ObjectInstance(getObjectName(), getClassName()); }
delegate = (MBeanServerDelegate) object; ServerObjectInstance serverObjInst = new ServerObjectInstance (regName, entry.getResourceClassName(), delegate.getMBeanServerId());
delegate = (MBeanServerDelegate) object; ServerObjectInstance serverObjInst = new ServerObjectInstance (regName, entry.getResourceClassName(), delegate.getMBeanServerId());