Package com.aspectran.core.adapter
Interface ApplicationAdapter
-
- All Known Implementing Classes:
AbstractApplicationAdapter,BasicApplicationAdapter
public interface ApplicationAdapterThe Interface ApplicationAdapter.- Since:
- 2011. 3. 13.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetAdaptee()Gets the adaptee object.ApplicationScopegetApplicationScope()Gets the application scope.<T> TgetAttribute(java.lang.String name)Gets the attribute.java.util.Enumeration<java.lang.String>getAttributeNames()Gets the attribute names.voidremoveAttribute(java.lang.String name)Removes the attribute.voidsetAttribute(java.lang.String name, java.lang.Object value)Sets the attribute.
-
-
-
Method Detail
-
getAdaptee
<T> T getAdaptee()
Gets the adaptee object.- Type Parameters:
T- the generic type- Returns:
- the adaptee object
-
getApplicationScope
ApplicationScope getApplicationScope()
Gets the application scope.- Returns:
- the scope
-
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
-
-