Package com.aspectran.core.adapter
Interface ApplicationAdapter
-
- All Known Implementing Classes:
AbstractApplicationAdapter
,DefaultApplicationAdapter
public interface ApplicationAdapter
The Interface ApplicationAdapter.- Since:
- 2011. 3. 13.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getAttribute(java.lang.String name)
Gets the attribute.java.util.Enumeration<java.lang.String>
getAttributeNames()
Gets the attribute names.java.lang.String
getBasePath()
Returns the base path that the current application is mapped to.java.lang.ClassLoader
getClassLoader()
Returns the class loader used by the current application.void
removeAttribute(java.lang.String name)
Removes the attribute.void
setAttribute(java.lang.String name, java.lang.Object value)
Sets the attribute.java.lang.String
toRealPath(java.lang.String filePath)
Returns to convert the given file path with the real file path.java.io.File
toRealPathAsFile(java.lang.String filePath)
Returns to convert the given file path with the real file path.
-
-
-
Method Detail
-
getClassLoader
java.lang.ClassLoader getClassLoader()
Returns the class loader used by the current application.- Returns:
- the class loader
-
getBasePath
java.lang.String getBasePath()
Returns the base path that the current application is mapped to.- Returns:
- the application base path
-
toRealPath
java.lang.String toRealPath(java.lang.String filePath) throws java.io.IOException
Returns to convert the given file path with the real file path.- Parameters:
filePath
- the specified file path- Returns:
- the real file path
- Throws:
java.io.IOException
- if an I/O error has occurred
-
toRealPathAsFile
java.io.File toRealPathAsFile(java.lang.String filePath) throws java.io.IOException
Returns to convert the given file path with the real file path.- Parameters:
filePath
- the specified file path- Returns:
- the real file path
- Throws:
java.io.IOException
- if an I/O error has occurred
-
getAttribute
<T> T getAttribute(java.lang.String name)
Gets the attribute.- Type Parameters:
T
- the generic type- Parameters:
name
- the name- Returns:
- the attribute
-
setAttribute
void setAttribute(java.lang.String name, java.lang.Object value)
Sets the attribute.- Parameters:
name
- the namevalue
- the value
-
getAttributeNames
java.util.Enumeration<java.lang.String> getAttributeNames()
Gets the attribute names.- Returns:
- the attribute names
-
removeAttribute
void removeAttribute(java.lang.String name)
Removes the attribute.- Parameters:
name
- the name
-
-