org.apache.cocoon.components.accessor
Class MapAccessor
java.lang.Object
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 $
Fields inherited from interface org.apache.cocoon.components.accessor.Accessor |
ROLE |
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 |
MapAccessor
public MapAccessor()
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.