
public class DefaultJaxpCurrenciesProvider extends Object implements JaxpCurrenciesProvider
JaxpCurrenciesProvider implementation.
 This implementation provides resources by searching the classpath. Property resourceName holds the name of
 the resources to search and defaults to META-INF/jdtaus/currencies.xml.
JaxpCurrencyDirectory| Constructor and Description | 
|---|
| DefaultJaxpCurrenciesProvider()Standard implementation constructor  org.jdtaus.banking.ri.currencydir.DefaultJaxpCurrenciesProvider. | 
| DefaultJaxpCurrenciesProvider(ClassLoader classLoader)Creates a new  ClasspathCurrenciesProviderinstance taking the class loader to search for resources. | 
| DefaultJaxpCurrenciesProvider(String resourceName)Creates a new  ClasspathCurrenciesProviderinstance taking the name of the classpath resources to search. | 
| DefaultJaxpCurrenciesProvider(String resourceName,
                                                          ClassLoader classLoader)Creates a new  ClasspathCurrenciesProviderinstance taking the name of the classpath resources to search
 and the class loader to search for resources. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassLoader | getClassLoader()Gets the class loader searched for resources. | 
| String | getResourceName()Gets the name of the classpath resource to search. | 
| URL[] | getResources()Gets URLs to XML documents holding currency instances. | 
public DefaultJaxpCurrenciesProvider()
org.jdtaus.banking.ri.currencydir.DefaultJaxpCurrenciesProvider.public DefaultJaxpCurrenciesProvider(ClassLoader classLoader)
ClasspathCurrenciesProvider instance taking the class loader to search for resources.classLoader - the class loader to search for resources.public DefaultJaxpCurrenciesProvider(String resourceName)
ClasspathCurrenciesProvider instance taking the name of the classpath resources to search.resourceName - Name of the classpath resources to search.public DefaultJaxpCurrenciesProvider(String resourceName, ClassLoader classLoader)
ClasspathCurrenciesProvider instance taking the name of the classpath resources to search
 and the class loader to search for resources.resourceName - Name of the classpath resources to search.classLoader - The class loader to search for resources.public ClassLoader getClassLoader()
This method returns either the current thread's context class loader or this classes class loader, if the current thread has no context class loader set. A custom class loader can be specified by using one of the constructors taking a class loader.
public String getResourceName()
public URL[] getResources() throws IOException
JaxpCurrenciesProvidergetResources in interface JaxpCurrenciesProviderIOException - if providing the resources fails.Copyright © 2005–2014 jDTAUS. All rights reserved.