org.apache.commons.modeler.modules

Class MbeansDescriptorsDynamicMBeanSource

public class MbeansDescriptorsDynamicMBeanSource extends ModelerSource

Extract metadata from a dynamic mbean. Used to wrap a dynamic mbean in order to implement persistence. This is really an ugly asspect of the JMX spec - we need to convery from normal metainfo to model metainfo. The info is the same, but they use a different class. Just like the DOM spec - where all implementations get an order of unneeded complexity from the various types.
Field Summary
Stringlocation
static Loglog
Listmbeans
Registryregistry
Objectsource
Stringtype
Method Summary
ManagedBeancreateManagedBean(Registry registry, String domain, Object realObj, String type)
XXX Find if the 'className' is the name of the MBean or the real class ( I suppose first ) XXX Read (optional) descriptions from a .properties, generated from source XXX Deal with constructors
voidexecute()
ListloadDescriptors(Registry registry, String location, String type, Object source)
voidsetLocation(String loc)
voidsetRegistry(Registry reg)
voidsetSource(Object source)
voidsetType(String type)
Used if a single component is loaded

Field Detail

location

String location

log

private static Log log

mbeans

List mbeans

registry

Registry registry

source

Object source

type

String type

Method Detail

createManagedBean

public ManagedBean createManagedBean(Registry registry, String domain, Object realObj, String type)
XXX Find if the 'className' is the name of the MBean or the real class ( I suppose first ) XXX Read (optional) descriptions from a .properties, generated from source XXX Deal with constructors

execute

public void execute()

loadDescriptors

public List loadDescriptors(Registry registry, String location, String type, Object source)

setLocation

public void setLocation(String loc)

setRegistry

public void setRegistry(Registry reg)

setSource

public void setSource(Object source)

setType

public void setType(String type)
Used if a single component is loaded

Parameters: type

Copyright (c) 2001-2003 - Apache Software Foundation