public interface ItemFactory
Modifier and Type | Method and Description |
---|---|
DataItemCommand |
createCommand(String localId,
Map<String,Variant> properties) |
DataItemInputChained |
createInput(String localId,
Map<String,Variant> properties) |
WriteHandlerItem |
createInputOutput(String localId,
Map<String,Variant> properties,
WriteHandler writeHandler) |
WriteHandlerItem |
createOutput(String localId,
Map<String,Variant> properties,
WriteHandler writeHandler) |
void |
dispose()
Dispose the factory
|
void |
disposeAllItems()
Dispose all items at once
|
void |
disposeItem(DataItem dataItem)
Dispose an item if it was created by this factory
|
DataItemCommand createCommand(String localId, Map<String,Variant> properties)
DataItemInputChained createInput(String localId, Map<String,Variant> properties)
WriteHandlerItem createInputOutput(String localId, Map<String,Variant> properties, WriteHandler writeHandler)
WriteHandlerItem createOutput(String localId, Map<String,Variant> properties, WriteHandler writeHandler)
void disposeItem(DataItem dataItem)
If the item was not created by this factory or was already disposed this is no error and no exception is thrown
dataItem
- data item to disposevoid dispose()
All items that where created by this factory and where not disposed up to now are being disposed
After a call to this method it is not possible to create new items.
Multiple calls to dispose()
or calls to
disposeAllItems()
are possible.
void disposeAllItems()
After a call to this method it is still possible to create new items