org.apache.cocoon.components.accessor
Class MapAccessor

java.lang.Object
  extended byorg.apache.cocoon.components.accessor.MapAccessor
All Implemented Interfaces:
Accessor, Configurable, Serviceable, ThreadSafe

public class MapAccessor
extends Object
implements Accessor, Configurable, Serviceable, ThreadSafe

An accessor that handles a Map of accessors.

Version:
SVN $Id: MapAccessor.java 169483 2005-05-10 14:57:03Z lgawron $

Nested Class Summary
 class MapAccessor.AccessorMap
          Map that finds the accessor at access time.
 
Field Summary
 
Fields inherited from interface org.apache.cocoon.components.accessor.Accessor
ROLE
 
Constructor Summary
MapAccessor()
           
 
Method Summary
 void configure(Configuration config)
          The accessors that should be part of the map are configured through <element name="the key that will be used in the map" accessor="the name of the accessor"/>.
 void dispose()
          Release all resources.
 Object getObject()
          Get the map of accessors
 void service(ServiceManager manager)
          Set the current ServiceManager instance used by this Serviceable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAccessor

public MapAccessor()
Method Detail

configure

public void configure(Configuration config)
               throws ConfigurationException
The accessors that should be part of the map are configured through <element name="the key that will be used in the map" accessor="the name of the accessor"/>.

Specified by:
configure in interface Configurable
Throws:
ConfigurationException

service

public void service(ServiceManager manager)
             throws ServiceException
Set the current ServiceManager instance used by this Serviceable.

Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Release all resources.


getObject

public Object getObject()
Get the map of accessors

Specified by:
getObject in interface Accessor


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.