Environmentpublic class ContextEnvironment extends AbstractEnvironment
| Constructor | Description |
|---|---|
ContextEnvironment(ApplicationAdapter applicationAdapter) |
| Modifier and Type | Method | Description |
|---|---|---|
ApplicationAdapter |
getApplicationAdapter() |
Returns the application adapter.
|
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 |
setBasePath(java.lang.String basePath) |
Sets the application base path.
|
void |
setClassLoader(java.lang.ClassLoader classLoader) |
|
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.
|
acceptsProfiles, addPropertyItemRuleMap, getActiveProfiles, getDefaultProfiles, getProperty, getPropertyItemRuleMap, setActiveProfiles, setDefaultProfiles, setPropertyItemRuleMap, validateProfilepublic ContextEnvironment(ApplicationAdapter applicationAdapter)
public ApplicationAdapter getApplicationAdapter()
Environmentpublic java.lang.ClassLoader getClassLoader()
Environmentpublic void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.String getBasePath()
Environmentpublic void setBasePath(java.lang.String basePath)
basePath - the new application base pathpublic java.lang.String toRealPath(java.lang.String filePath)
throws java.io.IOException
EnvironmentfilePath - the specified file pathjava.io.IOException - if an I/O error has occurredpublic java.io.File toRealPathAsFile(java.lang.String filePath)
throws java.io.IOException
EnvironmentfilePath - the specified file pathjava.io.IOException - if an I/O error has occurredCopyright © 2008–2018 The Aspectran Project. All rights reserved.