Class TransferManagerFactory


  • public class TransferManagerFactory
    extends java.lang.Object
    This factory class creates a TransferManager from a Config object, and wraps it into the requested Feature(s).

    Depending on the Features that the original transfer manager is annotated with, the factory will wrap it into the corresponding feature specific transfer managers.

    The class uses the builder pattern. It can be used like this:

       TransactionAwareFeatureTransferManager txAwareTM = TransferManagerFactory
         .build(config)
         .withFeature(Retriable.class)
         .withFeature(PathAware.class)
         .withFeature(TransactionAware.class)
         .as(TransactionAware.class);
     
    See Also:
    Feature, FeatureTransferManager, TransferManager