|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.core.AbstractBuilder
public abstract class AbstractBuilder
AbstractBuilder is a base builder for use by a MultiViewProcessor. It provides base methods for developers who wish to utilize the dependency injected builder from configuration within the MultiViewProcessor or the associated BusinessDelegate.
Copyright ©Zphinx Software Solutions
| Field Summary | |
|---|---|
static String |
RUN_RESET
|
| Constructor Summary | |
|---|---|
AbstractBuilder()
Default Constructor |
|
AbstractBuilder(String delegateName,
String processorName)
Public Constructor - Sets the names of the default associates of this Builder |
|
| Method Summary | |
|---|---|
SpineBean |
createBean(String s)
Creates a SpineBean from the given string |
SpineBean |
createBeanFromIndex(int pageIndex)
Creates a Spine bean using the stated index and the default values of the delegateName and processorNames |
void |
resetSpineBean(SpineBean sBean)
Resets the SpineBean by reseting Modified date and the bean's description |
protected void |
resetSpineBean(SpineBean sBean,
Object wrapper)
Resets the SpineBean by reseting Modified date and the bean's description |
Object |
runMethod(SpineBean sBean,
String runType,
Object[] wrapper)
Invokes the relevant method in this object. |
void |
setDefaults(String delegateName,
String processorName)
Sets the names of the default associates of this Builder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RUN_RESET
| Constructor Detail |
|---|
public AbstractBuilder()
public AbstractBuilder(String delegateName,
String processorName)
delegateName - The name of the delegate which is directly associated to this builderprocessorName - The name of the processor which invoked this builder| Method Detail |
|---|
public Object runMethod(SpineBean sBean,
String runType,
Object[] wrapper)
throws SpineException
reset and the short/simple name of the objectClass. eg if we have a method resetLetter, set the runType to reset and pass in the full name of the SpineBean.
sBean - The SpineBean whose methods are to be runrunType - The prefix to the method we wish to runwrapper - An object array used to convey for any other parameters we wish to pass to our method, null if the method expects no parameters.
SpineException - The exception thrown if this call fails
protected void resetSpineBean(SpineBean sBean,
Object wrapper)
sBean - The SpineBean to resetwrapper - The object passed to this method, is not used in this implementationpublic void resetSpineBean(SpineBean sBean)
sBean - The SpineBean to reset
public SpineBean createBean(String s)
throws SpineException
s - The string which represents the SpineBean type to create
SpineException
public SpineBean createBeanFromIndex(int pageIndex)
throws SpineException
pageIndex - The int which is associated with the SpineBean type to create
SpineException
public void setDefaults(String delegateName,
String processorName)
delegateName - The name of the delegate which is directly associated to this builderprocessorName - The name of the processor which invoked this builder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||