|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.fluxion.datasource.impl.BeanModelDataSourceFactory
public class BeanModelDataSourceFactory
Factory for constructing new Datasources given a url to a jar file that represents the datasource.
Constructor Summary | |
---|---|
BeanModelDataSourceFactory()
Default constructor for the factory that produces bean modelling datasources. |
|
BeanModelDataSourceFactory(java.lang.ClassLoader classLoader)
Constructor for the factory that produces bean modelling datasources. |
Method Summary | |
---|---|
boolean |
addAdditionalDataSource(java.net.URL datasourceJarURL)
Adds an extra URL to the factory, so that additional datasources can be loaded from outside the current classloader. |
void |
clearAdditionalDataSources()
Clears the set of urls from which additional datasources are loaded |
java.util.Set<DataSource> |
createDataSources()
Creates all datasources found either in the current classloader or at any of the additional locations specified by getAdditionalDataSources() . |
java.util.Set<java.net.URL> |
getAdditionalDataSources()
Returns the list of urls that is currently configured as additional datasource locations |
java.lang.ClassLoader |
getFactoryClassLoader()
Returns the classloader this factory is currently configured with. |
boolean |
removeAdditionalDataSource(java.net.URL datasourceJarURL)
Removes a URL to the factory, so that additional datasources will not be loaded from outside the current classloader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanModelDataSourceFactory()
public BeanModelDataSourceFactory(java.lang.ClassLoader classLoader)
classLoader
- the classloader to load datasources fromMethod Detail |
---|
public boolean addAdditionalDataSource(java.net.URL datasourceJarURL)
createDataSources()
will then generate datasources for all datasources found in the current
classloader or jar files at the additional urls specified.
datasourceJarURL
- the url to load additional datasources from
public boolean removeAdditionalDataSource(java.net.URL datasourceJarURL)
createDataSources()
will generate datasources for all datasources found in the current
classloader or jar files at the additional urls specified, but no longer
including this one.
datasourceJarURL
- the url to remove from datasources generation
public void clearAdditionalDataSources()
public java.lang.ClassLoader getFactoryClassLoader()
public java.util.Set<java.net.URL> getAdditionalDataSources()
public java.util.Set<DataSource> createDataSources() throws DataSourceException
getAdditionalDataSources()
.
DataSourceException
- if there is a problem generating new
datasources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |