classpathhelper.tomcat.listener
Class TomcatClassLoaderService

java.lang.Object
  extended byclasspathhelper.tomcat.listener.TomcatClassLoaderService
All Implemented Interfaces:
ITomcatClassLoaderService
Direct Known Subclasses:
VersionFiveTomcatClassLoaderService, VersionFourTomcatClassLoaderService

public abstract class TomcatClassLoaderService
extends java.lang.Object
implements ITomcatClassLoaderService

Base class for ITomcatClassLoaderService instances.

Usage

Use the getService(classpathhelper.tomcat.listener.TomcatProperties) method to acquire an instance of this class appropriate to a specific version and instance.

TomcatClassLoaderService service =
    TomcatClassLoaderService.getService(new TomcatProperties("C:\\Tomcat41",
                                                             TomcatProperties.VERSION_4_1));
 

Since:
1.0
Author:
bharris

Field Summary
protected  TomcatProperties properties
          The properties associated with this instance.
 
Constructor Summary
protected TomcatClassLoaderService(TomcatProperties theProperties)
          Constructor.
 
Method Summary
static ITomcatClassLoaderService getService(TomcatProperties properties)
          Factory method for acquiring a specific instance of a ITomcatClassLoaderService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface classpathhelper.tomcat.listener.ITomcatClassLoaderService
createClassLoader, getAppNames
 

Field Detail

properties

protected TomcatProperties properties
The properties associated with this instance.

Constructor Detail

TomcatClassLoaderService

protected TomcatClassLoaderService(TomcatProperties theProperties)
Constructor.

Parameters:
theProperties - The properties specific to this instance.
Since:
1.0
Method Detail

getService

public static ITomcatClassLoaderService getService(TomcatProperties properties)

Factory method for acquiring a specific instance of a ITomcatClassLoaderService.

Parameters:
properties - The properties identifying a specific existing instanceof of Tomcat.
Returns:
A version appropriate instance of the service or null if the location or version of Tomcat cannot be found.
Since:
1.0