|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.overlays.TemplateContext
public class TemplateContext
A Cloudtide template context.
This class is configured by the template.xml files and is used to control the shared resource cache and classloader.
This class is an AggregateLifeCycle, so dependent beans may be added to the template and will be started, stopped and destroyed with the template. The template is started after the template.xml file have been applied. It is stopped and destroyed after the last instance using the template is undeployed.
| 嵌套类摘要 |
|---|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 构造方法摘要 | |
|---|---|
TemplateContext()
|
|
TemplateContext(String key,
Server server,
Resource baseResource,
ClassLoader libLoader)
|
|
| 方法摘要 | |
|---|---|
void |
addServerClass(String classname)
|
void |
addSystemClass(String classname)
|
void |
destroy()
Destroy the joined Destroyable beans in the reverse order they were added. |
Resource |
getBaseResource()
|
String |
getExtraClasspath()
|
Map<String,Object> |
getIdMap()
|
ClassLoader |
getLibLoader()
|
MimeTypes |
getMimeTypes()
|
PermissionCollection |
getPermissions()
|
ResourceCache |
getResourceCache()
|
Server |
getServer()
|
boolean |
isParentLoaderPriority()
|
boolean |
isServerClass(String clazz)
Is the class a Server Class. |
boolean |
isSystemClass(String clazz)
Is the class a System Class. |
Resource |
newResource(String urlOrPath)
Convert a URL or path to a Resource. |
void |
setExtraClasspath(String extraClasspath)
|
void |
setIdMap(Map<String,Object> idMap)
|
void |
setParentLoaderPriority(boolean java2compliant)
|
void |
setPermissions(PermissionCollection permissions)
|
void |
setServerClasses(String[] serverClasses)
Set the server classes patterns. |
void |
setSystemClasses(String[] systemClasses)
Set the system classes patterns. |
| 从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法 |
|---|
addBean, addBean, contains, doStart, doStop, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TemplateContext()
public TemplateContext(String key,
Server server,
Resource baseResource,
ClassLoader libLoader)
throws IOException
IOException| 方法详细信息 |
|---|
public ClassLoader getLibLoader()
public Resource getBaseResource()
public String getExtraClasspath()
WebAppClassLoader.Context 中的 getExtraClasspathpublic MimeTypes getMimeTypes()
public PermissionCollection getPermissions()
WebAppClassLoader.Context 中的 getPermissionspublic ResourceCache getResourceCache()
public Server getServer()
public boolean isParentLoaderPriority()
WebAppClassLoader.Context 中的 isParentLoaderPrioritypublic boolean isServerClass(String clazz)
WebAppClassLoader.Context 复制的描述
WebAppClassLoader.Context 中的 isServerClassclazz - The fully qualified name of the class.
public boolean isSystemClass(String clazz)
WebAppClassLoader.Context 复制的描述
WebAppClassLoader.Context 中的 isSystemClassclazz - The fully qualified name of the class.
public Resource newResource(String urlOrPath)
throws IOException
WebAppClassLoader.Context 复制的描述Resource.newResource(String).
WebAppClassLoader.Context 中的 newResourceurlOrPath - The URL or path to convert
IOException - The Resource could not be created.public void setExtraClasspath(String extraClasspath)
extraClasspath - Comma or semicolon separated path of filenames or URLs
pointing to directories or jar files. Directories should end
with '/'.public void setParentLoaderPriority(boolean java2compliant)
java2compliant - The java2compliant to set.public void setPermissions(PermissionCollection permissions)
permissions - The permissions to set.public void setServerClasses(String[] serverClasses)
Server classes/packages are classes used to implement the server and are hidden from the context. If the context needs to load these classes, it must have its own copy of them in WEB-INF/lib or WEB-INF/classes. A class pattern is a string of one of the forms:
serverClasses - The serverClasses to set.public void setSystemClasses(String[] systemClasses)
System classes/packages are classes provided by the JVM and that
cannot be replaced by classes of the same name from WEB-INF,
regardless of the value of setParentLoaderPriority(boolean).
A class pattern is a string of one of the forms:
systemClasses - The systemClasses to set.public void addSystemClass(String classname)
public void addServerClass(String classname)
public void destroy()
AggregateLifeCycle 复制的描述
Destroyable 中的 destroyAggregateLifeCycle 中的 destroyDestroyable.destroy()public void setIdMap(Map<String,Object> idMap)
public Map<String,Object> getIdMap()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||