org.edg.security.authorization.map
Class CachedMapCreator
java.lang.Object
|
+--org.edg.security.authorization.map.CachedMapCreator
- All Implemented Interfaces:
- AttributeMapCreator
- public class CachedMapCreator
- extends java.lang.Object
- implements AttributeMapCreator
Class CachedMapCreator.
Creates a CachedMap from the following XML snippet:
<!-- the supplied "config" node -->
<map ...>
<maxSize count="count" />
<maxTime seconds="seconds" />
<map> -- the definition of the underlying map
</map>
</map>
- Version:
- %I%, %G%
- Author:
- Olle Mulmo
- See Also:
CachedMap
,
AttributeMapCreator
,
AttributeMapFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theSizeElement
public static final java.lang.String theSizeElement
- See Also:
- Constant Field Values
theTimeElement
public static final java.lang.String theTimeElement
- See Also:
- Constant Field Values
CachedMapCreator
public CachedMapCreator()
create
public java.util.Map create(AttributeMapFactory factory,
org.w3c.dom.Element config)
throws java.lang.Exception
- Description copied from interface:
AttributeMapCreator
- Method create.
Creates a Map from the supplied XML definition.
- Specified by:
create
in interface AttributeMapCreator
- Parameters:
config
- The configuration.
- Returns:
- Map The resulting map, mapping a key to a List of String values
- Throws:
java.lang.Exception
- In case of an initialization error- See Also:
AttributeMapCreator.create(AttributeMapFactory,Element)