public interface ApplicationAdapter
Modifier and Type | Method and Description |
---|---|
<T> T |
getAdaptee()
Gets the adaptee object.
|
ApplicationScope |
getApplicationScope()
Gets the application scope.
|
<T> T |
getAttribute(String name)
Gets the attribute.
|
Enumeration<String> |
getAttributeNames()
Gets the attribute names.
|
String |
getBasePath()
Return the base path that the current application is mapped to.
|
ClassLoader |
getClassLoader()
Gets the class loader.
|
void |
removeAttribute(String name)
Removes the attribute.
|
void |
setAttribute(String name,
Object value)
Sets the attribute.
|
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader.
|
String |
toRealPath(String filePath)
Returns to convert the given file path with the real file path.
|
File |
toRealPathAsFile(String filePath)
Returns to convert the given file path with the real file path.
|
<T> T getAdaptee()
T
- the generic typeApplicationScope getApplicationScope()
<T> T getAttribute(String name)
T
- the generic typename
- the namevoid setAttribute(String name, Object value)
name
- the namevalue
- the valueEnumeration<String> getAttributeNames()
void removeAttribute(String name)
name
- the nameClassLoader getClassLoader()
void setClassLoader(ClassLoader classLoader)
classLoader
- the class loaderString getBasePath()
String toRealPath(String filePath) throws IOException
filePath
- the specified file pathIOException
- if an I/O error has occurredFile toRealPathAsFile(String filePath) throws IOException
filePath
- the specified file pathIOException
- if an I/O error has occurredCopyright © 2008–2017 Aspectran.com. All rights reserved.