|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
Map<String,Object> |
getApplicationScope()
Returns a mutable Map that maps application scope attribute names to their values. |
Set<URL> |
getClasspathResources(String path)
Searches for resources in the classpath, given a path. |
Map<String,String> |
getInitParams()
Return an immutable Map that maps context application initialization parameters to their values. |
URL |
getResource(String path)
Return a URL for the application resource mapped to the specified path. |
Set<URL> |
getResources(String path)
Return a URL for the application resource mapped to the specified path. |
TilesApplicationContext |
getRootContext()
Returns the root context. |
protected Set<URL> |
searchResources(ClassLoader loader,
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 TilesApplicationContext getRootContext()
public void setRootContext(TilesApplicationContext rootContext)
rootContext
- The root context.public Map<String,Object> getApplicationScope()
getApplicationScope
in interface TilesApplicationContext
public Map<String,String> getInitParams()
getInitParams
in interface TilesApplicationContext
public URL getResource(String path) throws IOException
getResource
in interface TilesApplicationContext
path
- to the desired resource.
IOException
- if the path is malformedpublic Set<URL> getResources(String path) throws IOException
getResources
in interface TilesApplicationContext
path
- to the desired resource.
IOException
- if the url is illegalpublic Set<URL> getClasspathResources(String path) throws IOException
path
- The path to search into.
IOException
- If something goes wrong during search.protected Set<URL> searchResources(ClassLoader loader, 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 |