net.sbbi.upnp.jmx.upnp
Class UPNPMBeanBuilderImpl

java.lang.Object
  extended bynet.sbbi.upnp.jmx.upnp.UPNPMBeanBuilderImpl
All Implemented Interfaces:
UPNPMBeanBuilder

public class UPNPMBeanBuilderImpl
extends java.lang.Object
implements UPNPMBeanBuilder

Basic implementation, will deploy all MBeans as simple UPNP devices

Version:
1.0
Author:
SuperBonBon

Constructor Summary
UPNPMBeanBuilderImpl()
           
 
Method Summary
 UPNPMBeanDevice buildUPNPMBean(javax.management.MBeanServer server, javax.management.ObjectInstance objectInstance, javax.management.MBeanInfo info)
          Build the UPNP MBean device, the method is NOT forced to return an UPNPMBeanDevice object.
 boolean select(javax.management.ObjectName objectName, java.lang.String className)
          Select if the given MBean represented by it's object name, implemented by class className can be exposed as an UPNP Device
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPNPMBeanBuilderImpl

public UPNPMBeanBuilderImpl()
Method Detail

select

public boolean select(javax.management.ObjectName objectName,
                      java.lang.String className)
Description copied from interface: UPNPMBeanBuilder
Select if the given MBean represented by it's object name, implemented by class className can be exposed as an UPNP Device

Specified by:
select in interface UPNPMBeanBuilder
Parameters:
objectName - the MBean object name
className - the MBean class name
Returns:
true if the MBean can be exposed false otherwise..

buildUPNPMBean

public UPNPMBeanDevice buildUPNPMBean(javax.management.MBeanServer server,
                                      javax.management.ObjectInstance objectInstance,
                                      javax.management.MBeanInfo info)
                               throws java.io.IOException
Description copied from interface: UPNPMBeanBuilder
Build 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:
buildUPNPMBean in interface UPNPMBeanBuilder
Parameters:
server - the Mbean server, never null
objectInstance - the MBean object instance, never null
info - 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:
java.io.IOException - if some errors occurs during object creation


Copyright © 2005 SuperBonBon Industries. All Rights Reserved.