public class DefaultOperationManager extends java.lang.Object implements OperationManager
Constructor and Description |
---|
DefaultOperationManager() |
Modifier and Type | Method and Description |
---|---|
Operation |
getOperation(java.lang.Class theClass,
int code) |
Operation |
getOperation(java.lang.Class theClass,
java.lang.String name) |
Operation |
getOperation(java.lang.Object obj,
int code) |
Operation |
getOperation(java.lang.Object obj,
java.lang.String name) |
int |
getOperationCode(java.lang.Class theClass,
java.lang.String name) |
boolean |
hasOperation(java.lang.Class theClass,
int code) |
boolean |
hasOperation(java.lang.Class theClass,
java.lang.String name) |
boolean |
hasOperation(java.lang.Object obj,
int code) |
boolean |
hasOperation(java.lang.Object obj,
java.lang.String name) |
java.lang.Object |
invokeOperation(java.lang.Object obj,
int code,
OperationContext context) |
java.lang.Object |
invokeOperation(java.lang.Object obj,
java.lang.String name,
OperationContext context) |
int |
registerOperation(Operation operation,
java.lang.Class theClass) |
int |
registerOperation(Operation operation,
java.lang.Object obj) |
public int registerOperation(Operation operation, java.lang.Class theClass)
registerOperation
in interface OperationManager
public Operation getOperation(java.lang.Object obj, java.lang.String name) throws OperationNotSupportedException
getOperation
in interface OperationManager
OperationNotSupportedException
public Operation getOperation(java.lang.Class theClass, java.lang.String name) throws OperationNotSupportedException
getOperation
in interface OperationManager
OperationNotSupportedException
public Operation getOperation(java.lang.Object obj, int code) throws OperationNotSupportedException
getOperation
in interface OperationManager
OperationNotSupportedException
public Operation getOperation(java.lang.Class theClass, int code) throws OperationNotSupportedException
getOperation
in interface OperationManager
OperationNotSupportedException
public boolean hasOperation(java.lang.Object obj, java.lang.String name)
hasOperation
in interface OperationManager
public boolean hasOperation(java.lang.Object obj, int code)
hasOperation
in interface OperationManager
public boolean hasOperation(java.lang.Class theClass, java.lang.String name)
hasOperation
in interface OperationManager
public boolean hasOperation(java.lang.Class theClass, int code)
hasOperation
in interface OperationManager
public java.lang.Object invokeOperation(java.lang.Object obj, java.lang.String name, OperationContext context) throws OperationException
invokeOperation
in interface OperationManager
OperationException
public java.lang.Object invokeOperation(java.lang.Object obj, int code, OperationContext context) throws OperationException
invokeOperation
in interface OperationManager
OperationException
public int getOperationCode(java.lang.Class theClass, java.lang.String name) throws OperationNotSupportedException
getOperationCode
in interface OperationManager
OperationNotSupportedException
public int registerOperation(Operation operation, java.lang.Object obj)
registerOperation
in interface OperationManager