mx4j/src/tools/mx4j/tools/remote/http HTTPResolver.java,1.3,1.4
Simone Bordet <[email protected]> Mon, 21 Feb 2005 11:20:06 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/http
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8288/src/tools/mx4j/tools/remote/http
Modified Files:
HTTPResolver.java
Log Message:
Modified some access modifier to allow easier subclassing
Index: HTTPResolver.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/http/HTTPResolver.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** HTTPResolver.java 13 Nov 2004 16:38:47 -0000 1.3
--- HTTPResolver.java 21 Feb 2005 11:20:02 -0000 1.4
***************
*** 14,17 ****
--- 14,18 ----
import java.util.Map;
import java.util.Set;
+
import javax.management.remote.JMXConnectorServerFactory;
import javax.management.remote.JMXServiceURL;
***************
*** 24,27 ****
--- 25,30 ----
public abstract class HTTPResolver extends ConnectionResolver
{
+ protected static final String DEFAULT_WEB_CONTAINER_CLASS = "mx4j.tools.remote.http.jetty.JettyWebContainer";
+
// TODO: maybe worth to use weak references to hold web containers
private static Map webContainers = new HashMap();
***************
*** 61,65 ****
String webContainerClassName = environment == null ? null : (String)environment.get(HTTPConnectorServer.EMBEDDED_WEB_CONTAINER_CLASS);
// Not present, by default use Jetty
! if (webContainerClassName == null || webContainerClassName.length() == 0) webContainerClassName = "mx4j.tools.remote.http.jetty.JettyWebContainer";
result = findWebContainer(url, webContainerClassName);
--- 64,68 ----
String webContainerClassName = environment == null ? null : (String)environment.get(HTTPConnectorServer.EMBEDDED_WEB_CONTAINER_CLASS);
// Not present, by default use Jetty
! if (webContainerClassName == null || webContainerClassName.length() == 0) webContainerClassName = DEFAULT_WEB_CONTAINER_CLASS;
result = findWebContainer(url, webContainerClassName);
***************
*** 141,145 ****
}
! private WebContainer createWebContainer(JMXServiceURL url, String webContainerClassName, Map environment)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
--- 144,148 ----
}
! protected WebContainer createWebContainer(JMXServiceURL url, String webContainerClassName, Map environment)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click