public final class MappingLoaderRegistry extends Object
| Constructor and Description |
|---|
MappingLoaderRegistry(AbstractProperties properties)
Creates an instance of this registry, loading the mapping loader factories from the
castor.properties file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deletes all 'cached' mapping loader factories.
|
MappingLoader |
getMappingLoader(String sourceType,
BindingType bindingType)
Returns a mapping loader for the suitable source and binding type.
|
Collection<MappingLoaderFactory> |
getMappingLoaderFactories()
Returns a list of 'cached' mapping loader factories.
|
public MappingLoaderRegistry(AbstractProperties properties)
properties - Properties.public void clear()
public MappingLoader getMappingLoader(String sourceType, BindingType bindingType) throws MappingException
sourceType - The type of the mapping source.bindingType - The binding type to load from mapping.MappingException - A mapping error occurred preventing descriptors from being generated
from the loaded mappingpublic Collection<MappingLoaderFactory> getMappingLoaderFactories()
Copyright © 2016. All rights reserved.