public class RegulatedApplicationAdapter extends Object implements ApplicationAdapter
Constructor and Description |
---|
RegulatedApplicationAdapter(ApplicationAdapter applicationAdapter)
Instantiates a new Regulated application adapter.
|
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.
|
public RegulatedApplicationAdapter(ApplicationAdapter applicationAdapter)
applicationAdapter
- the application adapterpublic <T> T getAdaptee()
ApplicationAdapter
getAdaptee
in interface ApplicationAdapter
T
- the generic typepublic ApplicationScope getApplicationScope()
ApplicationAdapter
getApplicationScope
in interface ApplicationAdapter
public <T> T getAttribute(String name)
ApplicationAdapter
getAttribute
in interface ApplicationAdapter
T
- the generic typename
- the namepublic void setAttribute(String name, Object value)
ApplicationAdapter
setAttribute
in interface ApplicationAdapter
name
- the namevalue
- the valuepublic Enumeration<String> getAttributeNames()
ApplicationAdapter
getAttributeNames
in interface ApplicationAdapter
public void removeAttribute(String name)
ApplicationAdapter
removeAttribute
in interface ApplicationAdapter
name
- the namepublic ClassLoader getClassLoader()
ApplicationAdapter
getClassLoader
in interface ApplicationAdapter
public void setClassLoader(ClassLoader classLoader)
ApplicationAdapter
setClassLoader
in interface ApplicationAdapter
classLoader
- the class loaderpublic String getBasePath()
ApplicationAdapter
getBasePath
in interface ApplicationAdapter
public String toRealPath(String filePath) throws IOException
ApplicationAdapter
toRealPath
in interface ApplicationAdapter
filePath
- the specified file pathIOException
- if an I/O error has occurredpublic File toRealPathAsFile(String filePath) throws IOException
ApplicationAdapter
toRealPathAsFile
in interface ApplicationAdapter
filePath
- the specified file pathIOException
- if an I/O error has occurredCopyright © 2008–2017 Aspectran.com. All rights reserved.