com.openharbor.beck.configure
Class Choose
java.lang.Object
com.openharbor.beck.configure.Choose
- All Implemented Interfaces:
- Configuration
- public class Choose
- extends java.lang.Object
- implements Configuration
A Mapping element that contains configuration values
(not qualified by a predicate).
This class is designed primarily to unmarshal easily from legible XML.
Configuration values come from XML attributes.
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Fields inherited from interface com.openharbor.beck.map.Configuration |
CLASS, EMPTY_STRING, EXCLUDE_PROPERTIES, FACTORY, GETTER, IDENTIFIER, INCLUDE_PROPERTIES, MAP_FROM_XML, MAPPER, MARSHALLER, MINIMAL_XML, MODEL, NAMER, NO_XML, PACKAGES, PROPERTY, RECEIVER, SETTER, UNMARSHALLER, XML |
Method Summary |
void |
configure(XMLContext context,
java.util.Map attributes)
|
protected void |
findClass(java.util.Map attributes,
java.lang.Object key,
java.lang.Package search)
|
java.lang.Object |
get(Configuration.Selector selector)
Get configuration information. |
protected java.lang.Object |
get(XMLName key)
|
protected void |
putClass(java.util.Map attributes,
java.lang.Object key,
java.lang.Class clazz)
|
protected void |
putModel(java.util.Map attributes,
java.lang.Object key,
org.xml.sax.EntityResolver resolver,
java.lang.String baseURI)
|
protected void |
putStringSet(java.util.Map attributes,
java.lang.Object key)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
Choose
public Choose()
toString
public java.lang.String toString()
configure
public void configure(XMLContext context,
java.util.Map attributes)
putStringSet
protected void putStringSet(java.util.Map attributes,
java.lang.Object key)
findClass
protected void findClass(java.util.Map attributes,
java.lang.Object key,
java.lang.Package search)
putClass
protected void putClass(java.util.Map attributes,
java.lang.Object key,
java.lang.Class clazz)
putModel
protected void putModel(java.util.Map attributes,
java.lang.Object key,
org.xml.sax.EntityResolver resolver,
java.lang.String baseURI)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public java.lang.Object get(Configuration.Selector selector)
- Description copied from interface:
Configuration
- Get configuration information.
This method must be thread-safe; that is, when called concurrently
by multiple threads, the object returned to each thread must be
independent of the threads' order of execution.
This is ordinarily achieved by not modifying any objects.
- Specified by:
get
in interface Configuration
- Parameters:
selector
- identifies what information is wanted.
- Returns:
- the desired information, or null if no such information is available.
get
protected java.lang.Object get(XMLName key)