Package | Description |
---|---|
org.javamoney.moneta.loader.internal |
Contains internal loader for updating resources loaded from remote, e.g. current conversion rates.
|
org.javamoney.moneta.spi |
Defines common base classes used for implementing SPIs and the
LoaderService . |
Modifier and Type | Method and Description |
---|---|
LoaderService.UpdatePolicy |
LoadableResource.getUpdatePolicy()
Get the
LoaderService.UpdatePolicy . |
LoaderService.UpdatePolicy |
DefaultLoaderService.getUpdatePolicy(java.lang.String resourceId) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultLoaderService.registerData(java.lang.String resourceId,
LoaderService.UpdatePolicy updatePolicy,
java.util.Map<java.lang.String,java.lang.String> properties,
java.net.URL backupResource,
java.net.URL... resourceLocations) |
Constructor and Description |
---|
LoadableResource(java.lang.String resourceId,
LoaderService.UpdatePolicy updatePolicy,
java.net.URL fallbackLocation,
java.net.URL... locations)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
LoaderService.UpdatePolicy |
LoaderService.getUpdatePolicy(java.lang.String dataId)
Get the
LoaderService.UpdatePolicy in place for the given dataId. |
static LoaderService.UpdatePolicy |
LoaderService.UpdatePolicy.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoaderService.UpdatePolicy[] |
LoaderService.UpdatePolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
LoaderService.registerData(java.lang.String resourceId,
LoaderService.UpdatePolicy updatePolicy,
java.util.Map<java.lang.String,java.lang.String> properties,
java.net.URL backupResource,
java.net.URL... resourceLocations)
Programmatically registers a remote resource
resourceLocation ,
backed up by a classpath resource backupResource , reachable as
dataId . |