站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

AbstractInvocationContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.common.invocation
Class AbstractInvocationContext

java.lang.Object
  extended byorg.jboss.portal.common.invocation.AbstractInvocationContext
All Implemented Interfaces:
InvocationContext
Direct Known Subclasses:
AbstractPortletInvocationContext, ControllerContext, JCRCommandContext, PortletInvocationContextSupport, ServerInvocationContextImpl

public class AbstractInvocationContext
extends java.lang.Object
implements InvocationContext

Version:
$Revision: 1.1 $
Author:
Julien Viet

Nested Class Summary
private static class AbstractInvocationContext.AttributeResolverRegistration
           
private static class AbstractInvocationContext.InvocationContextRegistration
           
private static class AbstractInvocationContext.Registration
          Typed registration to avoid issues classes that implement both interfaces AttributeResolver and InvocationContext.
 
Field Summary
private  java.util.Map resolvers
          .
 
Constructor Summary
AbstractInvocationContext()
           
 
Method Summary
protected  void addResolver(Scope resolverScope, AttributeResolver resolver)
           
protected  void addResolver(Scope resolverScope, InvocationContext federatedContext)
           
 java.lang.Object getAttribute(Scope attrScope, java.lang.Object attrKey)
          Returns an attribute value.
 AttributeResolver getAttributeResolver(Scope attrScope)
          Return the attribute resolver of this context.
 void removeAttribute(Scope attrScope, java.lang.Object attrKey)
          Remove an attribute value.
 void setAttribute(Scope attrScope, java.lang.Object attrKey, java.lang.Object attrValue)
          Update an attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolvers

private final java.util.Map resolvers
.

Constructor Detail

AbstractInvocationContext

public AbstractInvocationContext()
Method Detail

addResolver

protected final void addResolver(Scope resolverScope,
                                 InvocationContext federatedContext)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

addResolver

protected final void addResolver(Scope resolverScope,
                                 AttributeResolver resolver)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getAttributeResolver

public AttributeResolver getAttributeResolver(Scope attrScope)
                                       throws java.lang.IllegalArgumentException
Description copied from interface: InvocationContext
Return the attribute resolver of this context.

Specified by:
getAttributeResolver in interface InvocationContext
Parameters:
attrScope - the attribute resolver scope
Returns:
the attribute resolver or null if not found
Throws:
java.lang.IllegalArgumentException - if the attribute scope is invalid

getAttribute

public java.lang.Object getAttribute(Scope attrScope,
                                     java.lang.Object attrKey)
                              throws java.lang.IllegalArgumentException
Description copied from interface: InvocationContext
Returns an attribute value.

Specified by:
getAttribute in interface InvocationContext
Parameters:
attrScope - the attribute scope
attrKey -
Returns:
the attribute value or null if not found
Throws:
java.lang.IllegalArgumentException - if the attribute key or the attribute scope is not valid

setAttribute

public void setAttribute(Scope attrScope,
                         java.lang.Object attrKey,
                         java.lang.Object attrValue)
                  throws java.lang.IllegalArgumentException
Description copied from interface: InvocationContext
Update an attribute value.

Specified by:
setAttribute in interface InvocationContext
Parameters:
attrScope - the attribute scope
attrKey -
attrValue - the attribute value
Throws:
java.lang.IllegalArgumentException - if the attribute key or the attribute scope is not valid

removeAttribute

public void removeAttribute(Scope attrScope,
                            java.lang.Object attrKey)
Description copied from interface: InvocationContext
Remove an attribute value. If the attribute value is null the resolver must treat the operation as a removal of the attribute.

Specified by:
removeAttribute in interface InvocationContext
Parameters:
attrKey -