/** * Deregister the MBeans for the specified ContextResourceLink entry. * * @param resourceLink ContextResourceLink for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResourceLink resourceLink) throws Exception { // Destroy the MBean for the ContextResourceLink itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResourceLink " + resourceLink); } MBeanUtils.destroyMBean(resourceLink); }
/** * Deregister the MBeans for the specified ContextResource entry. * * @param resource ContextResource for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResource resource) throws Exception { // Destroy the MBean for the ContextResource itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResource " + resource); } MBeanUtils.destroyMBean(resource); }
/** * Deregister the MBeans for the specified ContextEnvironment entry. * * @param environment ContextEnvironment for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextEnvironment environment) throws Exception { // Destroy the MBean for the ContextEnvironment itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextEnvironment " + environment); } MBeanUtils.destroyMBean(environment); }
/** * Remove an existing group and destroy the corresponding MBean. * * @param groupname Group name to remove */ public void removeGroup(String groupname) { UserDatabase database = (UserDatabase) this.resource; Group group = database.findGroup(groupname); if (group == null) { return; } try { MBeanUtils.destroyMBean(group); database.removeGroup(group); } catch (Exception e) { IllegalArgumentException iae = new IllegalArgumentException ("Exception destroying group " + group + " MBean"); iae.initCause(e); throw iae; } }
/** * Remove an existing group and destroy the corresponding MBean. * * @param groupname Group name to remove */ public void removeGroup(String groupname) { UserDatabase database = (UserDatabase) this.resource; Group group = database.findGroup(groupname); if (group == null) { return; } try { MBeanUtils.destroyMBean(group); database.removeGroup(group); } catch (Exception e) { IllegalArgumentException iae = new IllegalArgumentException( "Exception destroying group [" + groupname + "] MBean"); iae.initCause(e); throw iae; } }
/** * Remove an existing role and destroy the corresponding MBean. * * @param rolename Role name to remove */ public void removeRole(String rolename) { UserDatabase database = (UserDatabase) this.resource; Role role = database.findRole(rolename); if (role == null) { return; } try { MBeanUtils.destroyMBean(role); database.removeRole(role); } catch (Exception e) { IllegalArgumentException iae = new IllegalArgumentException( "Exception destroying role [" + rolename + "] MBean"); iae.initCause(e); throw iae; } }
/** * Remove an existing user and destroy the corresponding MBean. * * @param username User name to remove */ public void removeUser(String username) { UserDatabase database = (UserDatabase) this.resource; User user = database.findUser(username); if (user == null) { return; } try { MBeanUtils.destroyMBean(user); database.removeUser(user); } catch (Exception e) { IllegalArgumentException iae = new IllegalArgumentException( "Exception destroying user [" + username + "] MBean"); iae.initCause(e); throw iae; } } }
/** * Remove an existing user and destroy the corresponding MBean. * * @param username User name to remove */ public void removeUser(String username) { UserDatabase database = (UserDatabase) this.resource; User user = database.findUser(username); if (user == null) { return; } try { MBeanUtils.destroyMBean(user); database.removeUser(user); } catch (Exception e) { IllegalArgumentException iae = new IllegalArgumentException ("Exception destroying user [" + username + "] MBean"); iae.initCause(e); throw iae; } }
/** * Deregister the MBeans for the specified Connector and its nested * components. * * @param connector Connector for which to deregister MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(Connector connector, Service service) throws Exception { // deregister the MBean for the Connector itself if (log.isDebugEnabled()) log.debug("Destroying MBean for Connector " + connector); MBeanUtils.destroyMBean(connector, service); }
/** * Deregister the MBeans for the specified ContextResource entry. * * @param resource ContextResource for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResource resource) throws Exception { // Destroy the MBean for the ContextResource itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResource " + resource); } MBeanUtils.destroyMBean(resource); }
/** * Deregister the MBeans for the specified ContextResourceLink entry. * * @param resourceLink ContextResourceLink for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResourceLink resourceLink) throws Exception { // Destroy the MBean for the ContextResourceLink itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResourceLink " + resourceLink); } MBeanUtils.destroyMBean(resourceLink); }
/** * Deregister the MBeans for the specified Connector and its nested * components. * * @param connector Connector for which to deregister MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(Connector connector, Service service) throws Exception { // deregister the MBean for the Connector itself if (log.isDebugEnabled()) log.debug("Destroying MBean for Connector " + connector); MBeanUtils.destroyMBean(connector, service); }
/** * Deregister the MBeans for the specified ContextEnvironment entry. * * @param environment ContextEnvironment for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextEnvironment environment) throws Exception { // Destroy the MBean for the ContextEnvironment itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextEnvironment " + environment); } MBeanUtils.destroyMBean(environment); }
/** * Deregister the MBeans for the specified ContextResource entry. * * @param resource ContextResource for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResource resource) throws Exception { // Destroy the MBean for the ContextResource itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResource " + resource); } MBeanUtils.destroyMBean(resource); }
/** * Deregister the MBeans for the specified ContextResourceLink entry. * * @param resourceLink ContextResourceLink for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResourceLink resourceLink) throws Exception { // Destroy the MBean for the ContextResourceLink itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResourceLink " + resourceLink); } MBeanUtils.destroyMBean(resourceLink); }
/** * Deregister the MBeans for the specified Connector and its nested * components. * * @param connector Connector for which to deregister MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(Connector connector, Service service) throws Exception { // deregister the MBean for the Connector itself if (log.isDebugEnabled()) log.debug("Destroying MBean for Connector " + connector); MBeanUtils.destroyMBean(connector, service); }
/** * Deregister the MBeans for the specified ContextEnvironment entry. * * @param environment ContextEnvironment for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextEnvironment environment) throws Exception { // Destroy the MBean for the ContextEnvironment itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextEnvironment " + environment); } MBeanUtils.destroyMBean(environment); }
/** * Deregister the MBeans for the specified ContextEnvironment entry. * * @param environment ContextEnvironment for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextEnvironment environment) throws Exception { // Destroy the MBean for the ContextEnvironment itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextEnvironment " + environment); } MBeanUtils.destroyMBean(environment); }
/** * Deregister the MBeans for the specified ContextResource entry. * * @param resource ContextResource for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResource resource) throws Exception { // Destroy the MBean for the ContextResource itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResource " + resource); } MBeanUtils.destroyMBean(resource); }
/** * Deregister the MBeans for the specified ContextResourceLink entry. * * @param resourceLink ContextResourceLink for which to destroy MBeans * * @exception Exception if an exception is thrown during MBean destruction */ protected void destroyMBeans(ContextResourceLink resourceLink) throws Exception { // Destroy the MBean for the ContextResourceLink itself if (log.isDebugEnabled()) { log.debug("Destroying MBean for ContextResourceLink " + resourceLink); } MBeanUtils.destroyMBean(resourceLink); }