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