Finished first draft of File syncing
This commit is contained in:
parent
c28a566c78
commit
6883287c72
10 changed files with 209 additions and 18 deletions
|
@ -59,7 +59,7 @@ public class DataExchangeAPI extends DataExchange {
|
|||
}
|
||||
|
||||
/**
|
||||
* Add a new Descriptor for a DataHandler.
|
||||
* Add a new Descriptor for a {@link DataHandler}.
|
||||
* @param desc The Descriptor you want to add.
|
||||
*/
|
||||
public static void registerDescriptor(DataHandlerDescriptor desc){
|
||||
|
@ -67,6 +67,15 @@ public class DataExchangeAPI extends DataExchange {
|
|||
api.getDescriptors().add(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bulk-Add a Descriptors for your {@link DataHandler}-Objects.
|
||||
* @param desc The Descriptors you want to add.
|
||||
*/
|
||||
public static void registerDescriptors(List<DataHandlerDescriptor> desc){
|
||||
DataExchange api = DataExchange.getInstance();
|
||||
api.getDescriptors().addAll(desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends the Handler.
|
||||
* <p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue