|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemonster.surinam.controller.AbstractOperationAction
public abstract class AbstractOperationAction
Some Actions are more related to operations on a Service Block and not about registering services. This abstract class simply provides some implementations for methods that are not normally used in such cases.
| Constructor Summary | |
|---|---|
AbstractOperationAction()
|
|
| Method Summary | |
|---|---|
abstract void |
apply(ServiceBlock serviceBlock)
This is the only callback that subclasses will need to provide implementations for; you take the ServiceBlock and do what you will. |
String |
getName()
We want to be able to discern which operation is being performed by subclasses of this object. |
Iterator<ServiceToFieldInjectionPair> |
getRequiredServices()
There are no required services for operations. |
void |
injectServices(ServiceBlock serviceBlock)
This is another method we don't normally need. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractOperationAction()
| Method Detail |
|---|
public abstract void apply(ServiceBlock serviceBlock)
apply in interface ActionserviceBlock - The ServiceBlock that the actions will be given access to.public String getName()
getName in interface Actionpublic Iterator<ServiceToFieldInjectionPair> getRequiredServices()
getRequiredServices in interface Action
public void injectServices(ServiceBlock serviceBlock)
throws ClassNotFoundException,
DependencyInjectionException,
IllegalAccessException
injectServices in interface ActionserviceBlock - The ServiceBlock that the actions will be given access to.
ClassNotFoundException - Thrown if the class cannot be found; usually a classpath or packaging issue.
DependencyInjectionException - Thrown if injection fails.
IllegalAccessException - Thrown if there is a loader or hierarchy failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||