|
Jetty example source code file (WebAppContextMBean.java)
The Jetty WebAppContextMBean.java source codepackage org.mortbay.jetty.webapp.management; import org.mortbay.jetty.handler.management.ContextHandlerMBean; import org.mortbay.jetty.webapp.WebAppContext; public class WebAppContextMBean extends ContextHandlerMBean { public WebAppContextMBean(Object managedObject) { super(managedObject); } /* ------------------------------------------------------------ */ public String getObjectNameBasis() { String basis = super.getObjectNameBasis(); if (basis!=null) return basis; if (_managed!=null && _managed instanceof WebAppContext) { WebAppContext context = (WebAppContext)_managed; String name = context.getWar(); if (name!=null) return name; } return null; } } Other Jetty examples (source code examples)Here is a short list of links related to this Jetty WebAppContextMBean.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.