org.jboss.mx.loading
Class ClassPreloadService
java.lang.Object
org.jboss.mx.loading.ClassPreloadService
public class ClassPreloadService
- extends Object
A simple service that can be used preload all classes in the classpath
of the thread context class loader seen in the start method as the thread
context class loader. A simple xmbean fragment for deploying the service
is:
The patterns for classpath includes
IncludePatterns
[Ljava.lang.String;
The patterns for classpath excludes
ExcludePatterns
[Ljava.lang.String;
A flag indicate if String.endsWith matching of includes/excludes should be used
SimpleMatch
[Ljava.lang.String;
start
jbossmq.jar
true
- Version:
- $Revision: 57200 $
- Author:
- Scott.Stark@jboss.org
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPreloadService
public ClassPreloadService()
getIncludePatterns
public String[] getIncludePatterns()
setIncludePatterns
public void setIncludePatterns(String[] includePattern)
getExcludePatterns
public String[] getExcludePatterns()
setExcludePatterns
public void setExcludePatterns(String[] excludePattern)
isSimpleMatch
public boolean isSimpleMatch()
setSimpleMatch
public void setSimpleMatch(boolean simpleMatch)
getRawClassPath
public URL[] getRawClassPath()
start
public void start()
- Load all classes seen the TCL classpath. This entails a scan of every
archive in the TCL classpath URLs for .class entries.
compileIncludes
public Pattern[] compileIncludes()
compileExcludes
public Pattern[] compileExcludes()
filterCP
public URL[] filterCP(URL[] rawCP,
Pattern[] includes,
Pattern[] excludes)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.