Class GenericOpenAgentBuilder
- java.lang.Object
-
- org.zkoss.zats.mimic.impl.operation.GenericOpenAgentBuilder
-
- All Implemented Interfaces:
OperationAgentBuilder<ComponentAgent,OpenAgent>
public class GenericOpenAgentBuilder extends Object implements OperationAgentBuilder<ComponentAgent,OpenAgent>
- Author:
- dennis
-
-
Constructor Summary
Constructors Constructor Description GenericOpenAgentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAgentgetOperation(ComponentAgent target)This method create and return a specific implementation ofOperationAgentobject for specified OperationAgent class.Class<OpenAgent>getOperationClass()Provide class information for registration.
-
-
-
Method Detail
-
getOperation
public OpenAgent getOperation(ComponentAgent target)
Description copied from interface:OperationAgentBuilderThis method create and return a specific implementation ofOperationAgentobject for specified OperationAgent class. Similar to factory pattern.- Specified by:
getOperationin interfaceOperationAgentBuilder<ComponentAgent,OpenAgent>- Returns:
- the operation agent
-
getOperationClass
public Class<OpenAgent> getOperationClass()
Description copied from interface:OperationAgentBuilderProvide class information for registration.- Specified by:
getOperationClassin interfaceOperationAgentBuilder<ComponentAgent,OpenAgent>- Returns:
- a sub-class of
OperationAgent
-
-