public class EnhancedTilesApplicationContext extends Object implements TilesApplicationContext
Constructor and Description |
---|
EnhancedTilesApplicationContext(TilesApplicationContext rootContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
getContext()
Returns the original, technology-dependent, context.
|
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.
|
public EnhancedTilesApplicationContext(TilesApplicationContext rootContext)
rootContext
- The root context to use.public Object getContext()
getContext
in interface TilesApplicationContext
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.Copyright © 2017. All rights reserved.