Top Description Fields Constructors Methods
org.javamoney.moneta.spi.loader

public Class LoadDataInformationBuilder

extends Object
Class Inheritance
Imports
java.net.URI, java.util.Map, .Objects, org.javamoney.moneta.spi.loader.LoaderService.Listener, .LoaderService.UpdatePolicy

Builder to LoadDataInformation Programmatically registers a remote resource resourceLocation, backed up by a classpath resource backupResource, reachable as dataId.

Field Summary

Modifier and TypeField and Description
private URI
backupResource

The backup resource location in the classpath, not null.

private LoaderService.Listener
listener

An (optional) Listener to be registered.

private Map<String, String>
private String
resourceId

The unique identifier of the resource that must also be used for accessing the resource, not null.

private URI[]
resourceLocations

The remote resource locations, not null.

private boolean
private LoaderService.UpdatePolicy

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LoadDataInformation
public LoadDataInformationBuilder
withBackupResource(URI backupResource)

public LoadDataInformationBuilder
public LoadDataInformationBuilder
public LoadDataInformationBuilder
withResourceId(String resourceId)

public LoadDataInformationBuilder
withResourceLocations(URI... resourceLocations)

public LoadDataInformationBuilder
withStartRemote(boolean startRemote)

public LoadDataInformationBuilder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

backupResourceback to summary
private URI backupResource

The backup resource location in the classpath, not null.

listenerback to summary
private LoaderService.Listener listener

An (optional) Listener to be registered.

propertiesback to summary
private Map<String, String> properties
resourceIdback to summary
private String resourceId

The unique identifier of the resource that must also be used for accessing the resource, not null.

resourceLocationsback to summary
private URI[] resourceLocations

The remote resource locations, not null.

startRemoteback to summary
private boolean startRemote
updatePolicyback to summary
private LoaderService.UpdatePolicy updatePolicy

Constructor Detail

LoadDataInformationBuilderback to summary
public LoadDataInformationBuilder()

Method Detail

buildback to summary
public LoadDataInformation build()
withBackupResourceback to summary
public LoadDataInformationBuilder withBackupResource(URI backupResource)
withLoaderListenerback to summary
public LoadDataInformationBuilder withLoaderListener(LoaderService.Listener listener)
withPropertiesback to summary
public LoadDataInformationBuilder withProperties(Map<String, String> properties)
withResourceIdback to summary
public LoadDataInformationBuilder withResourceId(String resourceId)
withResourceLocationsback to summary
public LoadDataInformationBuilder withResourceLocations(URI... resourceLocations)
withStartRemoteback to summary
public LoadDataInformationBuilder withStartRemote(boolean startRemote)
withUpdatePolicyback to summary
public LoadDataInformationBuilder withUpdatePolicy(LoaderService.UpdatePolicy updatePolicy)