org.apache.catalina.loader
クラス StandardLoader

java.lang.Object
  |
  +--org.apache.catalina.loader.StandardLoader
すべての実装インタフェース:
java.util.EventListener, Lifecycle, Loader, java.beans.PropertyChangeListener, java.lang.Runnable

推奨されていません。 StandardLoader is slower and less robust than WebappLoader for loading web applications. Use WebappLoader instead.

public final class StandardLoader
extends java.lang.Object
implements Lifecycle, Loader, java.beans.PropertyChangeListener, java.lang.Runnable

Standard implementation of the Loader interface that wraps the AdaptiveClassLoader implementation imported from the Apache JServ project. This class loader supports detection of modified Java classes, which can be used to implement auto-reload support.

This class loader is configured by adding the pathnames of directories, JAR files, and ZIP files with the addRepository() method, prior to calling start(). When a new class is required, these repositories will be consulted first to locate the class. If it is not present, the system class loader will be used instead.

バージョン:
$Revision: 1.28.2.1 $ $Date: 2001/10/04 19:28:42 $
作成者:
Craig R. McClanahan, Remy Maucherat

フィールドの概要
protected  LifecycleSupport lifecycle
          推奨されていません。 The lifecycle event support for this component.
protected static StringManager sm
          推奨されていません。 The string manager for this package.
protected  java.beans.PropertyChangeSupport support
          推奨されていません。 The property change support for this component.
 
インタフェース org.apache.catalina.Lifecycle から継承したフィールド
START_EVENT, STOP_EVENT
 
コンストラクタの概要
StandardLoader()
          推奨されていません。 Construct a new StandardLoader with no defined parent class loader (so that the actual parent will be the system class loader).
StandardLoader(java.lang.ClassLoader parent)
          推奨されていません。 Construct a new StandardLoader with the specified class loader to be defined as the parent of the ClassLoader we ultimately create.
 
メソッドの概要
 void addLifecycleListener(LifecycleListener listener)
          推奨されていません。 Add a lifecycle event listener to this component.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          推奨されていません。 Add a property change listener to this component.
 void addRepository(java.lang.String repository)
          推奨されていません。 Add a new repository to the set of repositories for this class loader.
 java.lang.String[] findRepositories()
          推奨されていません。 Return the set of repositories defined for this class loader.
 int getCheckInterval()
          推奨されていません。 Return the check interval for this Loader.
 java.lang.ClassLoader getClassLoader()
          推奨されていません。 Return the Java class loader to be used by this Container.
 Container getContainer()
          推奨されていません。 Return the Container with which this Logger has been associated.
 int getDebug()
          推奨されていません。 Return the debugging detail level for this component.
 boolean getDelegate()
          推奨されていません。 Return the "follow standard delegation model" flag used to configure our ClassLoader.
 java.lang.String getInfo()
          推奨されていません。 Return descriptive information about this Loader implementation and the corresponding version number, in the format <description>/<version>.
 java.lang.String getLoaderClass()
          推奨されていません。 Return the ClassLoader class name.
 boolean getReloadable()
          推奨されていません。 Return the reloadable flag for this Loader.
 boolean modified()
          推奨されていません。 Has the internal repository associated with this Loader been modified, such that the loaded classes should be reloaded?
 void propertyChange(java.beans.PropertyChangeEvent event)
          推奨されていません。 Process property change events from our associated Context.
 void removeLifecycleListener(LifecycleListener listener)
          推奨されていません。 Remove a lifecycle event listener from this component.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          推奨されていません。 Remove a property change listener from this component.
 void run()
          推奨されていません。 The background thread that checks for session timeouts and shutdown.
 void setCheckInterval(int checkInterval)
          推奨されていません。 Set the check interval for this Loader.
 void setContainer(Container container)
          推奨されていません。 Set the Container with which this Logger has been associated.
 void setDebug(int debug)
          推奨されていません。 Set the debugging detail level for this component.
 void setDelegate(boolean delegate)
          推奨されていません。 Set the "follow standard delegation model" flag used to configure our ClassLoader.
 void setLoaderClass()
          推奨されていません。 Set the ClassLoader class name.
 void setReloadable(boolean reloadable)
          推奨されていません。 Set the reloadable flag for this Loader.
 void start()
          推奨されていません。 Start this component, initializing our associated class loader.
 void stop()
          推奨されていません。 Stop this component, finalizing our associated class loader.
 java.lang.String toString()
          推奨されていません。 Return a String representation of this component.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

lifecycle

protected LifecycleSupport lifecycle
推奨されていません。 
The lifecycle event support for this component.

sm

protected static final StringManager sm
推奨されていません。 
The string manager for this package.

support

protected java.beans.PropertyChangeSupport support
推奨されていません。 
The property change support for this component.
コンストラクタの詳細

StandardLoader

public StandardLoader()
推奨されていません。 
Construct a new StandardLoader with no defined parent class loader (so that the actual parent will be the system class loader).

StandardLoader

public StandardLoader(java.lang.ClassLoader parent)
推奨されていません。 
Construct a new StandardLoader with the specified class loader to be defined as the parent of the ClassLoader we ultimately create.
パラメータ:
parent - The parent class loader
メソッドの詳細

getCheckInterval

public int getCheckInterval()
推奨されていません。 
Return the check interval for this Loader.

setCheckInterval

public void setCheckInterval(int checkInterval)
推奨されていません。 
Set the check interval for this Loader.
パラメータ:
checkInterval - The new check interval

getClassLoader

public java.lang.ClassLoader getClassLoader()
推奨されていません。 
Return the Java class loader to be used by this Container.
定義:
インタフェース Loader 内の getClassLoader

getContainer

public Container getContainer()
推奨されていません。 
Return the Container with which this Logger has been associated.
定義:
インタフェース Loader 内の getContainer

setContainer

public void setContainer(Container container)
推奨されていません。 
Set the Container with which this Logger has been associated.
定義:
インタフェース Loader 内の setContainer
パラメータ:
container - The associated Container

getDebug

public int getDebug()
推奨されていません。 
Return the debugging detail level for this component.

setDebug

public void setDebug(int debug)
推奨されていません。 
Set the debugging detail level for this component.
パラメータ:
debug - The new debugging detail level

getDelegate

public boolean getDelegate()
推奨されていません。 
Return the "follow standard delegation model" flag used to configure our ClassLoader.
定義:
インタフェース Loader 内の getDelegate

setDelegate

public void setDelegate(boolean delegate)
推奨されていません。 
Set the "follow standard delegation model" flag used to configure our ClassLoader.
定義:
インタフェース Loader 内の setDelegate
パラメータ:
delegate - The new flag

getInfo

public java.lang.String getInfo()
推奨されていません。 
Return descriptive information about this Loader implementation and the corresponding version number, in the format <description>/<version>.
定義:
インタフェース Loader 内の getInfo

getLoaderClass

public java.lang.String getLoaderClass()
推奨されていません。 
Return the ClassLoader class name.

setLoaderClass

public void setLoaderClass()
推奨されていません。 
Set the ClassLoader class name.
パラメータ:
loaderClass - The new ClassLoader class name

getReloadable

public boolean getReloadable()
推奨されていません。 
Return the reloadable flag for this Loader.
定義:
インタフェース Loader 内の getReloadable

setReloadable

public void setReloadable(boolean reloadable)
推奨されていません。 
Set the reloadable flag for this Loader.
定義:
インタフェース Loader 内の setReloadable
パラメータ:
reloadable - The new reloadable flag

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
推奨されていません。 
Add a property change listener to this component.
定義:
インタフェース Loader 内の addPropertyChangeListener
パラメータ:
listener - The listener to add

addRepository

public void addRepository(java.lang.String repository)
推奨されていません。 
Add a new repository to the set of repositories for this class loader.
定義:
インタフェース Loader 内の addRepository
パラメータ:
repository - Repository to be added

findRepositories

public java.lang.String[] findRepositories()
推奨されていません。 
Return the set of repositories defined for this class loader. If none are defined, a zero-length array is returned.
定義:
インタフェース Loader 内の findRepositories

modified

public boolean modified()
推奨されていません。 
Has the internal repository associated with this Loader been modified, such that the loaded classes should be reloaded?
定義:
インタフェース Loader 内の modified

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
推奨されていません。 
Remove a property change listener from this component.
定義:
インタフェース Loader 内の removePropertyChangeListener
パラメータ:
listener - The listener to remove

toString

public java.lang.String toString()
推奨されていません。 
Return a String representation of this component.
オーバーライド:
クラス java.lang.Object 内の toString

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
推奨されていません。 
Add a lifecycle event listener to this component.
定義:
インタフェース Lifecycle 内の addLifecycleListener
パラメータ:
listener - The listener to add

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
推奨されていません。 
Remove a lifecycle event listener from this component.
定義:
インタフェース Lifecycle 内の removeLifecycleListener
パラメータ:
listener - The listener to remove

start

public void start()
           throws LifecycleException
推奨されていません。 
Start this component, initializing our associated class loader.
定義:
インタフェース Lifecycle 内の start
例外:
LifecycleException - if a lifecycle error occurs

stop

public void stop()
          throws LifecycleException
推奨されていません。 
Stop this component, finalizing our associated class loader.
定義:
インタフェース Lifecycle 内の stop
例外:
LifecycleException - if a lifecycle error occurs

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
推奨されていません。 
Process property change events from our associated Context.
定義:
インタフェース java.beans.PropertyChangeListener 内の propertyChange
パラメータ:
event - The property change event that has occurred

run

public void run()
推奨されていません。 
The background thread that checks for session timeouts and shutdown.
定義:
インタフェース java.lang.Runnable 内の run


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.