public class DefaultJaxpTextschluesselProvider extends Object implements JaxpTextschluesselProvider
JaxpTextschluesselProvider
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/textschluessel.xml
.
JaxpTextschluesselVerzeichnis
Constructor and Description |
---|
DefaultJaxpTextschluesselProvider()
Standard implementation constructor
org.jdtaus.banking.ri.txtdirectory.DefaultJaxpTextschluesselProvider . |
DefaultJaxpTextschluesselProvider(ClassLoader classLoader)
Creates a new
DefaultTextschluesselProvider instance taking the class loader to search for resources. |
DefaultJaxpTextschluesselProvider(String resourceName)
Creates a new
DefaultTextschluesselProvider instance taking the name of the classpath resource search. |
DefaultJaxpTextschluesselProvider(String resourceName,
ClassLoader classLoader)
Creates a new
DefaultTextschluesselProvider instance taking the name of the classpath resource 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 Textschlüssel instances.
|
public DefaultJaxpTextschluesselProvider()
org.jdtaus.banking.ri.txtdirectory.DefaultJaxpTextschluesselProvider
.public DefaultJaxpTextschluesselProvider(ClassLoader classLoader)
DefaultTextschluesselProvider
instance taking the class loader to search for resources.classLoader
- The class loader to search for resources.public DefaultJaxpTextschluesselProvider(String resourceName)
DefaultTextschluesselProvider
instance taking the name of the classpath resource search.resourceName
- Name of the classpath resource to search.public DefaultJaxpTextschluesselProvider(String resourceName, ClassLoader classLoader)
DefaultTextschluesselProvider
instance taking the name of the classpath resource to search
and the class loader to search for resources.resourceName
- Name of the classpath resource 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
JaxpTextschluesselProvider
getResources
in interface JaxpTextschluesselProvider
IOException
- if providing the resources fails.Copyright © 2005–2014 jDTAUS. All rights reserved.