Package com.aspectran.core.adapter
Class AbstractApplicationAdapter
- java.lang.Object
-
- com.aspectran.core.adapter.AbstractApplicationAdapter
-
- All Implemented Interfaces:
ApplicationAdapter
- Direct Known Subclasses:
DefaultApplicationAdapter
public abstract class AbstractApplicationAdapter extends java.lang.Object implements ApplicationAdapter
The Class AbstractApplicationAdapter.- Since:
- 2011. 3. 13.
-
-
Constructor Summary
Constructors Constructor Description AbstractApplicationAdapter(java.lang.String basePath, java.lang.ClassLoader classLoader)Instantiates a new AbstractApplicationAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBasePath()Returns the base path that the current application is mapped to.java.lang.ClassLoadergetClassLoader()Returns the class loader used by the current application.java.lang.StringtoRealPath(java.lang.String filePath)Returns to convert the given file path with the real file path.java.io.FiletoRealPathAsFile(java.lang.String filePath)Returns to convert the given file path with the real file path.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.adapter.ApplicationAdapter
getAttribute, getAttributeNames, removeAttribute, setAttribute
-
-
-
-
Method Detail
-
getBasePath
public java.lang.String getBasePath()
Description copied from interface:ApplicationAdapterReturns the base path that the current application is mapped to.- Specified by:
getBasePathin interfaceApplicationAdapter- Returns:
- the application base path
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Description copied from interface:ApplicationAdapterReturns the class loader used by the current application.- Specified by:
getClassLoaderin interfaceApplicationAdapter- Returns:
- the class loader
-
toRealPath
public java.lang.String toRealPath(java.lang.String filePath) throws java.io.IOExceptionDescription copied from interface:ApplicationAdapterReturns to convert the given file path with the real file path.- Specified by:
toRealPathin interfaceApplicationAdapter- Parameters:
filePath- the specified file path- Returns:
- the real file path
- Throws:
java.io.IOException- if an I/O error has occurred
-
toRealPathAsFile
public java.io.File toRealPathAsFile(java.lang.String filePath) throws java.io.IOExceptionDescription copied from interface:ApplicationAdapterReturns to convert the given file path with the real file path.- Specified by:
toRealPathAsFilein interfaceApplicationAdapter- Parameters:
filePath- the specified file path- Returns:
- the real file path
- Throws:
java.io.IOException- if an I/O error has occurred
-
-