List of usage examples for javax.management.modelmbean InvalidTargetObjectTypeException InvalidTargetObjectTypeException
public InvalidTargetObjectTypeException(String s)
From source file:net.lightbody.bmp.proxy.jetty.util.jmx.ModelMBeanImpl.java
public void setManagedResource(Object proxyObject, String type) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException { if (proxyObject == null) { proxyObject = null;//from w w w. j a v a2 s . c om return; } log.debug("setManagedResource"); if (!"objectreference".equalsIgnoreCase(type)) throw new InvalidTargetObjectTypeException(type); if (_object == null) { // first set so define attributes etc. _object = proxyObject; defineManagedResource(); } else _object = proxyObject; }