Package com.aspectran.core.adapter
Class DefaultApplicationAdapter
java.lang.Object
com.aspectran.core.adapter.AbstractApplicationAdapter
com.aspectran.core.adapter.DefaultApplicationAdapter
- All Implemented Interfaces:
ApplicationAdapter
The Class DefaultApplicationAdapter.
- Since:
- 2016. 3. 26.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultApplicationAdapter
(String basePath) Instantiates a new DefaultApplicationAdapter. -
Method Summary
Modifier and TypeMethodDescription<T> T
getAttribute
(String name) Returns the value for an attribute with the given name.Returns anEnumeration
containing the names of the attributes available to this application.void
removeAttribute
(String name) Removes an attribute set with the given name.void
setAttribute
(String name, Object value) Sets the value for the attribute of the given name, replacing an existing value (if any).Methods inherited from class com.aspectran.core.adapter.AbstractApplicationAdapter
getBasePath, toRealPath, toRealPathAsFile
-
Constructor Details
-
DefaultApplicationAdapter
Instantiates a new DefaultApplicationAdapter.
-
-
Method Details
-
getAttribute
Description copied from interface:ApplicationAdapter
Returns the value for an attribute with the given name.- Type Parameters:
T
- the value type- Parameters:
name
- the name of the attribute- Returns:
- the value for the attribute
-
setAttribute
Description copied from interface:ApplicationAdapter
Sets the value for the attribute of the given name, replacing an existing value (if any).- Parameters:
name
- the name of the attributevalue
- the value for the attribute
-
getAttributeNames
Description copied from interface:ApplicationAdapter
Returns anEnumeration
containing the names of the attributes available to this application.- Returns:
- the attribute names
-
removeAttribute
Description copied from interface:ApplicationAdapter
Removes an attribute set with the given name.- Parameters:
name
- the name of the attribute to be removed
-