Class PageContextHandler

  • All Implemented Interfaces:
    DynamicPropertyHandler

    public class PageContextHandler
    extends java.lang.Object
    implements DynamicPropertyHandler
    Implementation of the DynamicPropertyHandler interface that provides access to attributes of a PageContext in all scopes.
    Version:
    $Revision: 668329 $ $Date: 2008-06-16 16:59:48 -0500 (Mon, 16 Jun 2008) $
    Author:
    Dmitri Plotnikov
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getProperty​(java.lang.Object pageContext, java.lang.String property)
      Returns pageContext.findAttribute(property).
      java.lang.String[] getPropertyNames​(java.lang.Object pageContext)
      Returns a list of dynamic property names for the supplied object.
      void setProperty​(java.lang.Object pageContext, java.lang.String property, java.lang.Object value)
      Modifies the value of the specified dynamic property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageContextHandler

        public PageContextHandler()
    • Method Detail

      • getPropertyNames

        public java.lang.String[] getPropertyNames​(java.lang.Object pageContext)
        Description copied from interface: DynamicPropertyHandler
        Returns a list of dynamic property names for the supplied object.
        Specified by:
        getPropertyNames in interface DynamicPropertyHandler
        Parameters:
        pageContext - to inspect
        Returns:
        String[]
      • getProperty

        public java.lang.Object getProperty​(java.lang.Object pageContext,
                                            java.lang.String property)
        Returns pageContext.findAttribute(property).
        Specified by:
        getProperty in interface DynamicPropertyHandler
        Parameters:
        pageContext - to search
        property - name
        Returns:
        Object value
      • setProperty

        public void setProperty​(java.lang.Object pageContext,
                                java.lang.String property,
                                java.lang.Object value)
        Description copied from interface: DynamicPropertyHandler
        Modifies the value of the specified dynamic property.
        Specified by:
        setProperty in interface DynamicPropertyHandler
        Parameters:
        pageContext - to modify
        property - to modify
        value - to set