org.apache.cocoon.components.accessor
Class MapAccessor

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

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

An accessor that handles a Map of accessors.

Version:
$Id: MapAccessor.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
static 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"/>.
 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
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

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
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getObject

public Object getObject()
Get the map of accessors

Specified by:
getObject in interface Accessor
See Also:
Accessor.getObject()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.