|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oldlight.weaver.interpreter.WeaverExecutionContextImpl
A collection of classes that together represent the current state of execution of a Weaver application. This is the primary interface via which W-Bean code interacts with Weaver.
Field Summary | |
private WeaverApplicationContextImpl |
applicationContext
|
private WeaverBean |
beanClass
|
private WeaverBeanContextImpl |
beanContext
|
private WeaverLocalContextImpl |
localContext
|
private WeaverRequestContextImpl |
requestContext
|
private WeaverVariableResolver |
resolver
|
private WeaverResponseContextImpl |
responseContext
|
private WeaverServletContextImpl |
servletContext
|
private WeaverSessionContextImpl |
sessionContext
|
Constructor Summary | |
WeaverExecutionContextImpl(WeaverLocalContextImpl localContext,
WeaverRequestContextImpl requestContext,
WeaverResponseContextImpl responseContext,
WeaverSessionContextImpl sessionContext,
WeaverServletContextImpl servletContext,
WeaverApplicationContextImpl applicationContext)
Create a new WeaverExecutionContext object. |
Method Summary | |
Object |
findAttribute(String name)
Find a scoped attribute. |
WeaverApplicationContext |
getApplicationContext()
Get the application context. |
Object |
getAttribute(String name,
WeaverAttributeScope scope)
Gets a named attribute from a named scope. |
WeaverBean |
getBeanClass()
Gets the W-Bean being executed. |
WeaverBeanContext |
getBeanContext()
Get the current bean context. |
WeaverLocalContext |
getLocalContext()
Get the current local context. |
WeaverRequestContext |
getRequestContext()
Get the current request context. |
WeaverResponseContext |
getResponseContext()
Get the current response context. |
WeaverSecurityContext |
getSecurityContext()
Get the security context. |
WeaverServletContext |
getServletContext()
Get the servlet context. |
WeaverSessionContext |
getSessionContext()
Get the session context. |
WeaverVariableResolver |
getVariableResolver()
Gets the variable resolver for this context. |
void |
removeAttribute(String name)
Remove a named attribute from all scopes. |
void |
removeAttribute(String name,
WeaverAttributeScope scope)
Remove a named attribute from a named scope. |
void |
setAttribute(String name,
WeaverAttributeScope scope,
Object value)
Sets the value of a named attribute in a named scope. |
void |
setBeanClass(WeaverBean beanClass)
Sets the class of the W-Bean being executed. |
void |
setBeanContext(WeaverBeanContextImpl beanContext)
Set the bean context. |
void |
setSessionContext(WeaverSessionContextImpl sessionContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private WeaverBean beanClass
private WeaverBeanContextImpl beanContext
private WeaverLocalContextImpl localContext
private WeaverRequestContextImpl requestContext
private WeaverResponseContextImpl responseContext
private WeaverSessionContextImpl sessionContext
private WeaverServletContextImpl servletContext
private WeaverApplicationContextImpl applicationContext
private WeaverVariableResolver resolver
Constructor Detail |
public WeaverExecutionContextImpl(WeaverLocalContextImpl localContext, WeaverRequestContextImpl requestContext, WeaverResponseContextImpl responseContext, WeaverSessionContextImpl sessionContext, WeaverServletContextImpl servletContext, WeaverApplicationContextImpl applicationContext)
localContext
- Local context to store.requestContext
- Request context to store.responseContext
- Response context to store.sessionContext
- Session context to store.servletContext
- Servlet context to store.applicationContext
- Application context to store.Method Detail |
public WeaverSecurityContext getSecurityContext()
WeaverExecutionContext
getSecurityContext
in interface WeaverExecutionContext
public void setSessionContext(WeaverSessionContextImpl sessionContext)
sessionContext
- The session context.public void setBeanClass(WeaverBean beanClass)
beanClass
- The bean class.public WeaverBean getBeanClass()
public WeaverVariableResolver getVariableResolver()
public void setBeanContext(WeaverBeanContextImpl beanContext)
beanContext
- The bean context.public Object findAttribute(String name)
findAttribute
in interface WeaverExecutionContext
name
- Name of the attribute to retrieve.
public Object getAttribute(String name, WeaverAttributeScope scope)
getAttribute
in interface WeaverExecutionContext
name
- Name of the attribute to retrieve.scope
- Scope to retrieve the attribute from (taken from the WeaverAttributeScope values)
public void setAttribute(String name, WeaverAttributeScope scope, Object value)
setAttribute
in interface WeaverExecutionContext
name
- Name of the attribute to set.scope
- Name of scope to set the attribute in (taken from the WeaverAttributeScope values).value
- Value to set the attribute to.public void removeAttribute(String name, WeaverAttributeScope scope)
removeAttribute
in interface WeaverExecutionContext
name
- The name of the attribute to remove.scope
- The scope to remove the attribute from (taken from the WeaverAttributeScope values).public void removeAttribute(String name)
removeAttribute
in interface WeaverExecutionContext
name
- The name of the attribute to remove.public WeaverBeanContext getBeanContext()
getBeanContext
in interface WeaverExecutionContext
public WeaverLocalContext getLocalContext()
getLocalContext
in interface WeaverExecutionContext
public WeaverRequestContext getRequestContext()
getRequestContext
in interface WeaverExecutionContext
public WeaverResponseContext getResponseContext()
getResponseContext
in interface WeaverExecutionContext
public WeaverSessionContext getSessionContext()
getSessionContext
in interface WeaverExecutionContext
public WeaverServletContext getServletContext()
getServletContext
in interface WeaverExecutionContext
public WeaverApplicationContext getApplicationContext()
getApplicationContext
in interface WeaverExecutionContext
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |