|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrails.game.ComponentManager
public class ComponentManager
ComponentManage - an implementation of ComponentManagerI, which handles the creation and configuration of rails.game components, and acts as a discovery point for other components to find them.
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_CLASS_TAG
The name of the XML attribute for the component's class. |
static java.lang.String |
COMPONENT_ELEMENT_ID
The name of the XML tag used to configure a component. |
static java.lang.String |
COMPONENT_FILE_TAG
The name of the XML attribute for the component's configuration file. |
static java.lang.String |
COMPONENT_NAME_TAG
The name of the XML attribute for the component's name. |
protected java.util.List<java.lang.String> |
directories
|
static java.lang.String |
ELEMENT_ID
The name of the XML tag used to configure the ComponentManager. |
protected static org.apache.log4j.Logger |
log
|
| Method Summary | |
|---|---|
static ComponentManager |
configureInstance(java.lang.String gameName,
Tag tag,
java.util.Map<java.lang.String,java.lang.String> gameOptions)
|
ConfigurableComponentI |
findComponent(java.lang.String componentName)
Returns the configured parameter with the given name. |
void |
finishPreparation()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELEMENT_ID
public static final java.lang.String COMPONENT_ELEMENT_ID
public static final java.lang.String COMPONENT_NAME_TAG
public static final java.lang.String COMPONENT_CLASS_TAG
public static final java.lang.String COMPONENT_FILE_TAG
protected static org.apache.log4j.Logger log
protected java.util.List<java.lang.String> directories
| Method Detail |
|---|
public static ComponentManager configureInstance(java.lang.String gameName,
Tag tag,
java.util.Map<java.lang.String,java.lang.String> gameOptions)
throws ConfigurationException
ConfigurationException
public void finishPreparation()
throws ConfigurationException
ConfigurationExceptionpublic ConfigurableComponentI findComponent(java.lang.String componentName)
componentName - the of the component sought.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||