ApplicationAdapter
public class WebApplicationAdapter extends AbstractApplicationAdapter
adaptee, scope
Constructor | Description |
---|---|
WebApplicationAdapter(javax.servlet.ServletContext servletContext) |
Instantiates a new WebApplicationAdapter.
|
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.
|
getAdaptee, getApplicationScope, toString
public WebApplicationAdapter(javax.servlet.ServletContext servletContext)
servletContext
- the servlet contextpublic <T> T getAttribute(java.lang.String name)
ApplicationAdapter
T
- the generic typename
- the namepublic void setAttribute(java.lang.String name, java.lang.Object o)
ApplicationAdapter
name
- the nameo
- the valuepublic java.util.Enumeration<java.lang.String> getAttributeNames()
ApplicationAdapter
public void removeAttribute(java.lang.String name)
ApplicationAdapter
name
- the nameCopyright © 2008–2018 The Aspectran Project. All rights reserved.