|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemonster.surinam.controller.RegisterContractAction
public class RegisterContractAction
This is an Contract Action object which registers a Service Contract.
| Constructor Summary | |
|---|---|
RegisterContractAction()
|
|
| Method Summary | |
|---|---|
void |
apply(ServiceBlock serviceBlock)
This is the primary execution point for all ServiceBlock actions. |
ContractBlueprint |
getContractBlueprint()
|
String |
getName()
We want to be able to discern which operation is being performed by subclasses of this object. |
Iterator<ServiceToFieldInjectionPair> |
getRequiredServices()
Get a list of fully qualified Contracts that this action requires. |
void |
injectServices(ServiceBlock serviceBlock)
This callback method is used to inject the ServiceBlock that the action will have access to in order to perform its work. |
void |
setContractBlueprint(ContractBlueprint contractBlueprint)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegisterContractAction()
| Method Detail |
|---|
public String getName()
getName in interface Actionpublic Iterator<ServiceToFieldInjectionPair> getRequiredServices()
getRequiredServices in interface Action
public void apply(ServiceBlock serviceBlock)
throws MalformedURLException,
ClassNotFoundException
apply in interface ActionserviceBlock - The ServiceBlock that the actions will be given access to.
MalformedURLException - Thrown if one of the classpath segments are malformed.
ClassNotFoundException - Thrown if the FQ class cannot be found on the classpath.public void injectServices(ServiceBlock serviceBlock)
injectServices in interface ActionserviceBlock - The ServiceBlock that the actions will be given access to.public ContractBlueprint getContractBlueprint()
public void setContractBlueprint(ContractBlueprint contractBlueprint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||