public class DriverUnit extends Unit<Driver> implements DriverDiscovery
Unit for the Driver. It "knows"
that ETL drivers belong to com.toolsverse.etl.driver package and sub
packages, should be loaded once, can not be reloaded, etc.| Constructor and Description |
|---|
DriverUnit()
Instantiates a new driver unit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
Object object)
Adds loaded object using name as a key.
|
void |
addWithoutLicense(String name,
Object object)
Adds loaded object which doesn't have license using name as a key.
|
boolean |
allowLoadAll()
Checks if loader allowed to to load all objects regardless of license.
|
boolean |
canBeLoadedAgain()
Checks if module can be loaded again.
|
void |
finishLoad(UnitLoader loader)
Executed when UnitLoader finishes load.
|
void |
free()
Executed when there is a need to free memory.
|
Driver |
getDriverByJdbcClassName(String jdbcClassName)
Gets the driver by jdbc class name.
|
List<Driver> |
getList()
Gets the list of loaded modules.
|
Map<String,Driver> |
getObjects()
Gets the objects.
|
List<KeyValue> |
getSelect()
Gets the list of drivers which can be used by combo box UI control to
select available drivers.
|
List<KeyValue> |
getSelectAll()
Gets the list used by combo box to select all etl drivers, event without license.
|
boolean |
loadsConfigurableExtensions()
Returns true if Unit is indented to load configurable extensions.
|
boolean |
startLoad()
Executed when UnitLoader starts loading.
|
getClassPath, getJarPath, getObjClass, getPath, isSingleton, setClassPath, setJarPath, setObjClass, setPath, setSingletonpublic void add(String name,
Object object)
Unitpublic void addWithoutLicense(String name,
Object object)
UnitaddWithoutLicense in class Unit<Driver>name - the unique name of the objectobject - the objectpublic boolean allowLoadAll()
UnitallowLoadAll in class Unit<Driver>public boolean canBeLoadedAgain()
UnitcanBeLoadedAgain in class Unit<Driver>public void finishLoad(UnitLoader loader)
UnitfinishLoad in class Unit<Driver>loader - the UnitLoaderpublic void free()
Unitpublic Driver getDriverByJdbcClassName(String jdbcClassName)
DriverDiscoverygetDriverByJdbcClassName in interface DriverDiscoveryjdbcClassName - the jdbc class namepublic List<Driver> getList()
Unitpublic Map<String,Driver> getObjects()
public List<KeyValue> getSelect()
public List<KeyValue> getSelectAll()
public boolean loadsConfigurableExtensions()
UnitloadsConfigurableExtensions in class Unit<Driver>Copyright © 2010-2020 Toolsverse. All Rights Reserved.