org.nuiton.topia.replication
Class TopiaReplicationOperationProvider

java.lang.Object
  extended by org.nuiton.topia.replication.TopiaReplicationOperationProvider

public class TopiaReplicationOperationProvider
extends Object

Provider of TopiaReplicationOperation.

Since:
2.4.3
Author:
tchemit

Field Summary
protected  TopiaReplicationOperation[] operations
          All available operations detected via a ServiceLoader on contract TopiaReplicationOperation.
 
Constructor Summary
TopiaReplicationOperationProvider()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operations

protected TopiaReplicationOperation[] operations
All available operations detected via a ServiceLoader on contract TopiaReplicationOperation.

Constructor Detail

TopiaReplicationOperationProvider

public TopiaReplicationOperationProvider()
Method Detail

getOperations

public TopiaReplicationOperation[] getOperations()
Obtains all TopiaReplicationOperation available via ServiceLoader.

If operations is null, then load operations, otherwise just return the already computed result.

Returns:
the array of all available operations

getOperation

public TopiaReplicationOperation getOperation(Class<? extends TopiaReplicationOperation> operationClass)
Obtains the instanciated (and initialized) operation of the given type.

Parameters:
operationClass - type of searched operation
Returns:
the found operation, or null if not found.

getOperation

public TopiaReplicationOperation getOperation(ReplicationOperationDef operationDef)
Obtains the instanciated (and initialized) operation of the given operation definition.

Parameters:
operationDef - operation definition of searched operation
Returns:
the found operation, or null if not found.

getUndoableOperation

public TopiaReplicationOperationUndoable getUndoableOperation(ReplicationOperationDef operationDef)
                                                       throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2004-2012 CodeLutin. All Rights Reserved.