Lines Matching refs:resource
125 <T> MBeanSupport(T resource, Class<T> mbeanInterfaceType)
129 if (!mbeanInterfaceType.isInstance(resource)) {
131 "Resource class " + resource.getClass().getName() +
136 this.resource = resource;
139 this.mbeanInfo = introspector.getMBeanInfo(resource, perInterface);
166 if (resource instanceof MBeanRegistration)
167 name = ((MBeanRegistration) resource).preRegister(server, name);
181 if (resource instanceof MBeanRegistration)
182 ((MBeanRegistration) resource).postRegister(registrationDone);
186 if (resource instanceof MBeanRegistration)
187 ((MBeanRegistration) resource).preDeregister();
197 if (resource instanceof MBeanRegistration)
198 ((MBeanRegistration) resource).postDeregister();
206 return perInterface.getAttribute(resource, attribute, getCookie());
230 perInterface.setAttribute(resource, name, value, getCookie());
252 return perInterface.invoke(resource, operation, params, signature,
262 return resource.getClass().getName();
266 return resource;
274 private final Object resource;