public class TopiaReplicationOperationProvider extends Object
TopiaReplicationOperation.| Modifier and Type | Field and Description |
|---|---|
protected TopiaReplicationOperation[] |
operations
All available operations detected via a
ServiceLoader on
contract TopiaReplicationOperation. |
| Constructor and Description |
|---|
TopiaReplicationOperationProvider() |
| Modifier and Type | Method and Description |
|---|---|
TopiaReplicationOperation |
getOperation(Class<? extends TopiaReplicationOperation> operationClass)
Obtains the instanciated (and initialized) operation of the given type.
|
TopiaReplicationOperation |
getOperation(ReplicationOperationDef operationDef)
Obtains the instanciated (and initialized) operation of the given
operation definition.
|
TopiaReplicationOperation[] |
getOperations()
Obtains all
TopiaReplicationOperation available
via ServiceLoader. |
TopiaReplicationOperationUndoable |
getUndoableOperation(ReplicationOperationDef operationDef) |
protected TopiaReplicationOperation[] operations
ServiceLoader on
contract TopiaReplicationOperation.public TopiaReplicationOperation[] getOperations()
TopiaReplicationOperation available
via ServiceLoader.
If operations is null, then load operations, otherwise just
return the already computed result.public TopiaReplicationOperation getOperation(Class<? extends TopiaReplicationOperation> operationClass)
operationClass - type of searched operationnull if not found.public TopiaReplicationOperation getOperation(ReplicationOperationDef operationDef)
operationDef - operation definition of searched operationnull if not found.public TopiaReplicationOperationUndoable getUndoableOperation(ReplicationOperationDef operationDef) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2004–2019 CodeLutin. All rights reserved.