|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<IModule>
com.monoserv.patterns.ChainManager
public class ChainManager
This is a class which will facilitate the logic between modules. It will implement a version of the "Chain Of Responsibility" Right now, it will be linear. Perhaps future possibility of expanding this into a tree or multiple branches may work. Note: This is not how I want it setup. This will be changed in the near future. It will be changed to reflect a generic "Chain Of Responsibiliy" and then another class (in another package) will eventually inherit that class. Makes more sense that way.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ChainManager()
Constructor - just calls super(); |
Method Summary | |
---|---|
boolean |
add(IModule arg0)
This is an overriden version of the add(E) inside of ArrayList. |
void |
add(int arg0,
IModule arg1)
This is an overriden version of the add(int, E) inside of ArrayList. |
java.lang.String |
getDataModule()
Returns the module that was stored in the XML file. |
InstanceModifier |
getInstanceModifier()
Returns the instance modifier. |
void |
ReadXml(java.io.File xmlFile)
This will take a configuration XML file for the server and read it in. |
IModuleData |
RunThroughModuleBlocks(IModuleData objInput)
This will take the initial input and feed it through all the registered modules. |
Methods inherited from class java.util.ArrayList |
---|
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public ChainManager()
Method Detail |
---|
public boolean add(IModule arg0) throws java.lang.NullPointerException
add
in interface java.util.Collection<IModule>
add
in interface java.util.List<IModule>
add
in class java.util.ArrayList<IModule>
arg0
- The module to add to the list
java.lang.NullPointerException
- if the module is nullpublic void add(int arg0, IModule arg1)
add
in interface java.util.List<IModule>
add
in class java.util.ArrayList<IModule>
arg0
- The index to add the ArrayList tooarg1
- The instance to add to the array list.public InstanceModifier getInstanceModifier() throws java.lang.NullPointerException
java.lang.NullPointerException
- If the InstanceModifier object was not initialized.public IModuleData RunThroughModuleBlocks(IModuleData objInput)
objInput
- The first object to be used as input
public java.lang.String getDataModule() throws java.lang.NullPointerException
java.lang.NullPointerException
- If the string length() is 0 or if the String is nullpublic void ReadXml(java.io.File xmlFile) throws java.lang.RuntimeException
xmlFile
- A file object representing the file to be parsed.
java.lang.RuntimeException
- If something goes wrong (any number of things).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |