org.apache.catalina.mbeans

Class StandardContextMBean


public class StandardContextMBean
extends BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.core.StandardContext component.

Version:
$Revision: 1.7 $ $Date: 2004/04/15 01:44:09 $

Author:
Amy Roh

Field Summary

protected ManagedBean
managed
The ManagedBean information describing this MBean.
protected Registry
registry
The configuration information registry for our managed beans.

Constructor Summary

StandardContextMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

Method Summary

String
addEnvironment(String envName, String type)
Add an environment entry for this web application.
String
addResource(String resourceName, String type)
Add a resource reference for this web application.
String
addResourceLink(String resourceLinkName, String global, String name, String type)
Add a resource link for this web application.
String[]
getEnvironments()
Return the MBean Names of the set of defined environment entries for this web application
String[]
getResourceLinks()
Return the MBean Names of all the defined resource links for this application
String[]
getResources()
Return the MBean Names of all the defined resource references for this application.
javax.naming.directory.DirContext
getStaticResources()
Return the naming resources associated with this web application.
String[]
getWelcomeFiles()
Return the naming resources associated with this web application.
void
reload()
Return the naming resources associated with this web application.
void
removeEnvironment(String envName)
Remove any environment entry with the specified name.
void
removeResource(String resourceName)
Remove any resource reference with the specified name.
void
removeResourceLink(String resourceLinkName)
Remove any resource link with the specified name.

Field Details

managed

protected ManagedBean managed
The ManagedBean information describing this MBean.


registry

protected Registry registry
The configuration information registry for our managed beans.

Constructor Details

StandardContextMBean

public StandardContextMBean()
            throws MBeanException,
                   RuntimeOperationsException
Construct a ModelMBean with default ModelMBeanInfo information.

Method Details

addEnvironment

public String addEnvironment(String envName,
                             String type)
            throws MalformedObjectNameException
Add an environment entry for this web application.

Parameters:
envName - New environment entry name


addResource

public String addResource(String resourceName,
                          String type)
            throws MalformedObjectNameException
Add a resource reference for this web application.

Parameters:
resourceName - New resource reference name


addResourceLink

public String addResourceLink(String resourceLinkName,
                              String global,
                              String name,
                              String type)
            throws MalformedObjectNameException
Add a resource link for this web application.

Parameters:
resourceLinkName - New resource link name


getEnvironments

public String[] getEnvironments()
Return the MBean Names of the set of defined environment entries for this web application


getResourceLinks

public String[] getResourceLinks()
Return the MBean Names of all the defined resource links for this application


getResources

public String[] getResources()
Return the MBean Names of all the defined resource references for this application.


getStaticResources

public javax.naming.directory.DirContext getStaticResources()
Return the naming resources associated with this web application.


getWelcomeFiles

public String[] getWelcomeFiles()
Return the naming resources associated with this web application.


reload

public void reload()
Return the naming resources associated with this web application.


removeEnvironment

public void removeEnvironment(String envName)
Remove any environment entry with the specified name.

Parameters:


removeResource

public void removeResource(String resourceName)
Remove any resource reference with the specified name.

Parameters:
resourceName - Name of the resource reference to remove


removeResourceLink

public void removeResourceLink(String resourceLinkName)
Remove any resource link with the specified name.

Parameters:


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.