Package com.aspectran.core.adapter
Class DefaultApplicationAdapter
- java.lang.Object
-
- com.aspectran.core.adapter.AbstractApplicationAdapter
-
- com.aspectran.core.adapter.DefaultApplicationAdapter
-
- All Implemented Interfaces:
ApplicationAdapter
public class DefaultApplicationAdapter extends AbstractApplicationAdapter
The Class DefaultApplicationAdapter.- Since:
- 2016. 3. 26.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplicationAdapter(java.lang.String basePath, java.lang.ClassLoader classLoader)Instantiates a new DefaultApplicationAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAttribute(java.lang.String name)Returns the value for an attribute with the given name.java.util.Enumeration<java.lang.String>getAttributeNames()Returns anEnumerationcontaining the names of the attributes available to this application.voidremoveAttribute(java.lang.String name)Removes an attribute set with the given name.voidsetAttribute(java.lang.String name, java.lang.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, getClassLoader, toRealPath, toRealPathAsFile
-
-
-
-
Method Detail
-
getAttribute
public <T> T getAttribute(java.lang.String name)
Description copied from interface:ApplicationAdapterReturns 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
public void setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:ApplicationAdapterSets 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
public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface:ApplicationAdapterReturns anEnumerationcontaining the names of the attributes available to this application.- Returns:
- the attribute names
-
removeAttribute
public void removeAttribute(java.lang.String name)
Description copied from interface:ApplicationAdapterRemoves an attribute set with the given name.- Parameters:
name- the name of the attribute to be removed
-
-