org.apache.tiles.context.enhanced
Class EnhancedTilesApplicationContext
java.lang.Object
org.apache.tiles.context.enhanced.EnhancedTilesApplicationContext
- All Implemented Interfaces:
- org.apache.tiles.TilesApplicationContext
public class EnhancedTilesApplicationContext
- extends java.lang.Object
- implements org.apache.tiles.TilesApplicationContext
ApplicationContext decorator used to provide
enhancements to the standard context.
Specifically, it provides:
- Ability to load resources from the classpath
- Ability to retrieve multiple resources of the same name
Future features will include:
- Ability to utilize wildcards in resource pathcs
- Since:
- Tiles 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhancedTilesApplicationContext
public EnhancedTilesApplicationContext(org.apache.tiles.TilesApplicationContext rootContext)
getRootContext
public org.apache.tiles.TilesApplicationContext getRootContext()
setRootContext
public void setRootContext(org.apache.tiles.TilesApplicationContext rootContext)
getApplicationScope
public java.util.Map<java.lang.String,java.lang.Object> getApplicationScope()
- Specified by:
getApplicationScope
in interface org.apache.tiles.TilesApplicationContext
getInitParams
public java.util.Map<java.lang.String,java.lang.String> getInitParams()
- Specified by:
getInitParams
in interface org.apache.tiles.TilesApplicationContext
getResource
public java.net.URL getResource(java.lang.String path)
throws java.io.IOException
- Specified by:
getResource
in interface org.apache.tiles.TilesApplicationContext
- Throws:
java.io.IOException
getResources
public java.util.Set<java.net.URL> getResources(java.lang.String path)
throws java.io.IOException
- Specified by:
getResources
in interface org.apache.tiles.TilesApplicationContext
- Throws:
java.io.IOException
getClasspathResources
public java.util.Set<java.net.URL> getClasspathResources(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
searchResources
protected java.util.Set<java.net.URL> searchResources(java.lang.ClassLoader loader,
java.lang.String path)