public class AliasReaderUnit extends Unit<AliasReader>
Unit
interface for the AliasReader
.Constructor and Description |
---|
AliasReaderUnit()
Instantiates a new AliasReader 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.
|
List<AliasReader> |
getList()
Gets the list of loaded modules.
|
Map<String,AliasReader> |
getObjects()
Gets the objects.
|
List<KeyValue> |
getSelect()
Gets the the list of AliasReaders which can be used by the combo box UI control.
|
List<KeyValue> |
getSelectAll()
Gets the list used by combo box to select all AliasReaders, 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, setSingleton
public void add(String name, Object object)
Unit
add
in class Unit<AliasReader>
name
- the unique name of the objectobject
- the objectpublic void addWithoutLicense(String name, Object object)
Unit
addWithoutLicense
in class Unit<AliasReader>
name
- the unique name of the objectobject
- the objectpublic boolean allowLoadAll()
Unit
allowLoadAll
in class Unit<AliasReader>
public boolean canBeLoadedAgain()
Unit
canBeLoadedAgain
in class Unit<AliasReader>
public void finishLoad(UnitLoader loader)
Unit
finishLoad
in class Unit<AliasReader>
loader
- the UnitLoaderpublic void free()
Unit
free
in class Unit<AliasReader>
public List<AliasReader> getList()
Unit
getList
in class Unit<AliasReader>
public Map<String,AliasReader> getObjects()
public List<KeyValue> getSelect()
public List<KeyValue> getSelectAll()
public boolean loadsConfigurableExtensions()
Unit
loadsConfigurableExtensions
in class Unit<AliasReader>
public boolean startLoad()
Unit
startLoad
in class Unit<AliasReader>
Copyright © 2010-2020 Toolsverse. All Rights Reserved.