public static class TransferManagerFactory.TransferManagerBuilder extends java.lang.Object
TransferManager, and wraps it with feature-specific transfer managers, if the original transfer manager is annotated with a
|Modifier and Type||Method and Description|
Wraps of the previously requested feature transfer managers and casts the result to the requested class.
Wraps of the previously requested feature transfer managers and returns a standard transfer manager.
This method requests the original transfer manager to be wrapped in the corresponding feature transfer manager.
public TransferManagerFactory.TransferManagerBuilder withFeature(java.lang.Class<? extends java.lang.annotation.Annotation> featureAnnotation)
Note: Calling this method does not automatically wrap the transfer manager. It will only be wrapped if the original transfer manager is annotated with the feature annotation.
If the requested
Feature is required (as per its definition), but the original
transfer manager is not annotated with this feature, the creation of the transfer manager
featureAnnotation- Annotation representing the feature (see features.* package)
public <T extends TransferManager> T as(java.lang.Class<? extends java.lang.annotation.Annotation> featureAnnotation)
asDefault()can be used instead.
featureAnnotation- Feature annotation corresponding to the requested transfer manager
TransferManagercasted to the feature lasted wrapped (and requested by this method)
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit f2749f7 at Thu Feb 16 08:16:44 UTC 2017
Copyright © 2011-2015 Philipp C. Heckel