Top Description Inners Fields Constructors Methods
org.apache.tomcat.util.modeler

public Class NoDescriptorRegistry

extends Registry
Class Inheritance
Imports
java.io.ObjectInputStream, java.util.Collections, .List, .Set, javax.management.Attribute, .AttributeList, .AttributeNotFoundException, .InstanceAlreadyExistsException, .InstanceNotFoundException, .IntrospectionException, .InvalidAttributeValueException, .ListenerNotFoundException, .MBeanException, .MBeanInfo, .MBeanOperationInfo, .MBeanRegistrationException, .MBeanServer, .NotCompliantMBeanException, .NotificationFilter, .NotificationListener, .ObjectInstance, .ObjectName, .OperationsException, .QueryExp, .ReflectionException, javax.management.loading.ClassLoaderRepository

An implementation of the MBean registry that effectively disables MBean registration. This is typically used when low memory footprint is a primary concern.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final ManagedBean
private final MBeanServer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addManagedBean(final ManagedBean
The managed bean to be added
bean
)

Overrides org.apache.tomcat.util.modeler.Registry.addManagedBean.

Add a new bean metadata to the set of beans known to this registry.

public ManagedBean
findManagedBean(final String
Name of the managed bean to be returned. Since 1.1, both short names or the full name of the class can be used.
name
)

Overrides org.apache.tomcat.util.modeler.Registry.findManagedBean.

Find and return the managed bean definition for the specified bean name, if any; otherwise return null.

public ManagedBean
findManagedBean(final Object
The bean
bean
,
final Class<?>
The bean class
beanClass
,
final String
The registry type
type
)

Overrides org.apache.tomcat.util.modeler.Registry.findManagedBean.

Find or load metadata.

public int
getId(final String
Namespace
domain
,
final String
Type of the notification
name
)

Overrides org.apache.tomcat.util.modeler.Registry.getId.

Implements org.apache.tomcat.util.modeler.RegistryMBean.getId.

Return an int ID for faster access.

public MBeanServer
getMBeanServer()

Overrides org.apache.tomcat.util.modeler.Registry.getMBeanServer.

Factory method to create (if necessary) and return our MBeanServer instance.

public MBeanOperationInfo
getMethodInfo(final ObjectName
The bean name
oname
,
final String
The operation name
opName
)

Overrides org.apache.tomcat.util.modeler.Registry.getMethodInfo.

Find the operation info for a method

public String
getType(final ObjectName
The bean name
oname
,
final String
The attribute name
attName
)

Overrides org.apache.tomcat.util.modeler.Registry.getType.

Get the type of an attribute of the object, from the metadata.

public void
invoke(final List<ObjectName>
list of ObjectName on which we'll invoke the operations
mbeans
,
final String
Name of the operation ( init, start, stop, etc)
operation
,
final boolean
If false, exceptions will be ignored
failFirst
)

Overrides org.apache.tomcat.util.modeler.Registry.invoke.

Implements org.apache.tomcat.util.modeler.RegistryMBean.invoke.

Invoke a operation on a list of mbeans.

public List<ObjectName>
load(final String
The source type
sourceType
,
final Object
The bean
source
,
final String
A type to load
param
)

Overrides org.apache.tomcat.util.modeler.Registry.load.

Load descriptors.

public void
loadDescriptors(final String
The package name
packageName
,
final ClassLoader
The class loader
classLoader
)

Overrides org.apache.tomcat.util.modeler.Registry.loadDescriptors.

Lookup the component descriptor in the package and in the parent packages.

public void
registerComponent(final Object
Object to be registered
bean
,
final String
Name used for registration
oname
,
final String
The type of the mbean, as declared in mbeans-descriptors. If null, the name of the class will be used. This can be used as a hint or by subclasses.
type
)

Overrides org.apache.tomcat.util.modeler.Registry.registerComponent.

Implements org.apache.tomcat.util.modeler.RegistryMBean.registerComponent.

Register a bean by creating a modeler mbean and adding it to the MBeanServer.

public void
registerComponent(final Object
The bean
bean
,
final ObjectName
The object name
oname
,
final String
The registry type
type
)

Overrides org.apache.tomcat.util.modeler.Registry.registerComponent.

Register a component

public void
public void
unregisterComponent(final ObjectName
The bean name
oname
)

Overrides org.apache.tomcat.util.modeler.Registry.unregisterComponent.

Unregister a component.

Inherited from org.apache.tomcat.util.modeler.Registry:
convertValuedisableRegistrygetMethodInfogetRegistrypostDeregisterpostRegisterpreDeregisterpreRegisterstop