public class TilesApplicationContextWrapper extends Object implements TilesApplicationContext
Constructor and Description |
---|
TilesApplicationContextWrapper(TilesApplicationContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getApplicationScope()
Returns a mutable Map that maps application scope attribute names to
their values.
|
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 |
getWrappedApplicationContext()
Returns the wrapped application context.
|
public TilesApplicationContextWrapper(TilesApplicationContext context)
context
- The original context.public TilesApplicationContext getWrappedApplicationContext()
public Map<String,Object> getApplicationScope()
getApplicationScope
in interface TilesApplicationContext
public Object getContext()
getContext
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 illegalCopyright © 2017. All rights reserved.