|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.apache.tiles.context.enhanced.EnhancedTilesApplicationContext
public class EnhancedTilesApplicationContext
ApplicationContext decorator used to provide enhancements to the standard context. Specifically, it provides:
| Constructor Summary | |
|---|---|
EnhancedTilesApplicationContext(TilesApplicationContext rootContext)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getApplicationScope()
Returns a mutable Map that maps application scope attribute names to their values. |
java.util.Set<java.net.URL> |
getClasspathResources(java.lang.String path)
Searches for resources in the classpath, given a path. |
java.lang.Object |
getContext()
Returns the original, technology-dependent, context. |
java.util.Map<java.lang.String,java.lang.String> |
getInitParams()
Return an immutable Map that maps context application initialization parameters to their values. |
java.net.URL |
getResource(java.lang.String path)
Return a URL for the application resource mapped to the specified path. |
java.util.Set<java.net.URL> |
getResources(java.lang.String path)
Return a URL for the application resource mapped to the specified path. |
TilesApplicationContext |
getRootContext()
Returns the root context. |
protected java.util.Set<java.net.URL> |
searchResources(java.lang.ClassLoader loader,
java.lang.String path)
Searches for resources in the classpath, given a path, using a class loader. |
void |
setRootContext(TilesApplicationContext rootContext)
Sets the root context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnhancedTilesApplicationContext(TilesApplicationContext rootContext)
rootContext - The root context to use.| Method Detail |
|---|
public java.lang.Object getContext()
getContext in interface TilesApplicationContextpublic TilesApplicationContext getRootContext()
public void setRootContext(TilesApplicationContext rootContext)
rootContext - The root context.public java.util.Map<java.lang.String,java.lang.Object> getApplicationScope()
getApplicationScope in interface TilesApplicationContextpublic java.util.Map<java.lang.String,java.lang.String> getInitParams()
getInitParams in interface TilesApplicationContext
public java.net.URL getResource(java.lang.String path)
throws java.io.IOException
getResource in interface TilesApplicationContextpath - to the desired resource.
java.io.IOException - if the path is malformed
public java.util.Set<java.net.URL> getResources(java.lang.String path)
throws java.io.IOException
getResources in interface TilesApplicationContextpath - to the desired resource.
java.io.IOException - if the url is illegal
public java.util.Set<java.net.URL> getClasspathResources(java.lang.String path)
throws java.io.IOException
path - The path to search into.
java.io.IOException - If something goes wrong during search.
protected java.util.Set<java.net.URL> searchResources(java.lang.ClassLoader loader,
java.lang.String path)
loader - The class loader to use.path - The path to search into.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||