public class DataLoadProviderRegistry extends Object
DataLoadProvider
s to be registered and retrieved by the
data and resource classes they provide encoders and decoders for.Constructor and Description |
---|
DataLoadProviderRegistry() |
Modifier and Type | Method and Description |
---|---|
<T,Z> DataLoadProvider<T,Z> |
get(Class<T> dataClass,
Class<Z> resourceClass)
Returns the currently registered
DataLoadProvider for the given classes. |
<T,Z> void |
register(Class<T> dataClass,
Class<Z> resourceClass,
DataLoadProvider<T,Z> provider)
Registers the given
DataLoadProvider using the given classes so it can later
be retrieved using the given classes. |
public <T,Z> void register(Class<T> dataClass, Class<Z> resourceClass, DataLoadProvider<T,Z> provider)
DataLoadProvider
using the given classes so it can later
be retrieved using the given classes.T
- The type of the data that the provider provides encoders and decoders for.Z
- The type of the resource that the provider provides encoders and decoders for.dataClass
- The class of the data that the provider provides encoders and decoders for.resourceClass
- The class of the resource that the provider provides encoders and decoders for.provider
- The provider.public <T,Z> DataLoadProvider<T,Z> get(Class<T> dataClass, Class<Z> resourceClass)
DataLoadProvider
for the given classes.T
- The type of the data that the provider provides encoders and decoders for.Z
- The type of the resource that the provider provides encoders and decoders for.dataClass
- The class of the data that the provider provides encoders and decoders for.resourceClass
- The class of the resource that the provider provides encoders and decoders for.