Package com.aspectran.web.adapter
Class WebApplicationAdapter
- java.lang.Object
-
- com.aspectran.core.adapter.AbstractApplicationAdapter
-
- com.aspectran.web.adapter.WebApplicationAdapter
-
- All Implemented Interfaces:
ApplicationAdapter
public class WebApplicationAdapter extends AbstractApplicationAdapter
The Class WebApplicationAdapter.- Since:
- 2011. 3. 13.
-
-
Field Summary
-
Fields inherited from class com.aspectran.core.adapter.AbstractApplicationAdapter
adaptee, scope
-
-
Constructor Summary
Constructors Constructor Description WebApplicationAdapter(javax.servlet.ServletContext servletContext)
Instantiates a new WebApplicationAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getAttribute(java.lang.String name)
Gets the attribute.java.util.Enumeration<java.lang.String>
getAttributeNames()
Gets the attribute names.void
removeAttribute(java.lang.String name)
Removes the attribute.void
setAttribute(java.lang.String name, java.lang.Object o)
Sets the attribute.-
Methods inherited from class com.aspectran.core.adapter.AbstractApplicationAdapter
getAdaptee, getApplicationScope, toString
-
-
-
-
Method Detail
-
getAttribute
public <T> T getAttribute(java.lang.String name)
Description copied from interface:ApplicationAdapter
Gets the attribute.- Type Parameters:
T
- the generic type- Parameters:
name
- the name- Returns:
- the attribute
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object o)
Description copied from interface:ApplicationAdapter
Sets the attribute.- Parameters:
name
- the nameo
- the value
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface:ApplicationAdapter
Gets the attribute names.- Returns:
- the attribute names
-
removeAttribute
public void removeAttribute(java.lang.String name)
Description copied from interface:ApplicationAdapter
Removes the attribute.- Parameters:
name
- the name
-
-