Package net.sbbi.upnp.jmx.upnp
Class UPNPMBeanBuilderImpl
- java.lang.Object
-
- net.sbbi.upnp.jmx.upnp.UPNPMBeanBuilderImpl
-
- All Implemented Interfaces:
UPNPMBeanBuilder
public class UPNPMBeanBuilderImpl extends Object implements UPNPMBeanBuilder
Basic implementation, will deploy all MBeans as simple UPNP devices- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Constructor Summary
Constructors Constructor Description UPNPMBeanBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UPNPMBeanDevicebuildUPNPMBean(MBeanServer server, ObjectInstance objectInstance, MBeanInfo info)Build the UPNP MBean device, the method is NOT forced to return an UPNPMBeanDevice object.booleanselect(ObjectName objectName, String className)Select if the given MBean represented by it's object name, implemented by class className can be exposed as an UPNP Device
-
-
-
Method Detail
-
select
public boolean select(ObjectName objectName, String className)
Description copied from interface:UPNPMBeanBuilderSelect if the given MBean represented by it's object name, implemented by class className can be exposed as an UPNP Device- Specified by:
selectin interfaceUPNPMBeanBuilder- Parameters:
objectName- the MBean object nameclassName- the MBean class name- Returns:
- true if the MBean can be exposed false otherwise..
-
buildUPNPMBean
public UPNPMBeanDevice buildUPNPMBean(MBeanServer server, ObjectInstance objectInstance, MBeanInfo info) throws IOException
Description copied from interface:UPNPMBeanBuilderBuild the UPNP MBean device, the method is NOT forced to return an UPNPMBeanDevice object. The method must NOT start or bind to any network interface the UPNPMBeanDevice returned object- Specified by:
buildUPNPMBeanin interfaceUPNPMBeanBuilder- Parameters:
server- the Mbean server, never nullobjectInstance- the MBean object instance, never nullinfo- the MBean Object Info, never null- Returns:
- an instance (or null) of an UPNPMBeanDevice object. The implementation can deliver an UPNPMBeanDevice object containing multiple MBeans provided (or not) by previous buildUPNPMBean methods call.
- Throws:
IOException- if some errors occurs during object creation
-
-