public class ObjectPoolDataItemFactory extends java.lang.Object implements ItemFactory
| Constructor and Description |
|---|
ObjectPoolDataItemFactory(java.util.concurrent.Executor executor,
|
| Modifier and Type | Method and Description |
|---|---|
DataItemCommand |
createCommand(java.lang.String localId,
java.util.Map<java.lang.String,Variant> properties) |
DataItemInputChained |
createInput(java.lang.String localId,
java.util.Map<java.lang.String,Variant> properties) |
WriteHandlerItem |
createInputOutput(java.lang.String localId,
java.util.Map<java.lang.String,Variant> properties,
WriteHandler writeHandler) |
WriteHandlerItem |
createOutput(java.lang.String localId,
java.util.Map<java.lang.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
|
protected java.lang.String |
getId(java.lang.String localId) |
protected void |
unregisterItem(DataItem dataItem) |
public ObjectPoolDataItemFactory(java.util.concurrent.Executor executor,
objectPool,
java.lang.String prefix)
protected java.lang.String getId(java.lang.String localId)
public DataItemCommand createCommand(java.lang.String localId, java.util.Map<java.lang.String,Variant> properties)
createCommand in interface ItemFactorypublic DataItemInputChained createInput(java.lang.String localId, java.util.Map<java.lang.String,Variant> properties)
createInput in interface ItemFactorypublic WriteHandlerItem createInputOutput(java.lang.String localId, java.util.Map<java.lang.String,Variant> properties, WriteHandler writeHandler)
createInputOutput in interface ItemFactorypublic WriteHandlerItem createOutput(java.lang.String localId, java.util.Map<java.lang.String,Variant> properties, WriteHandler writeHandler)
createOutput in interface ItemFactoryprotected void unregisterItem(DataItem dataItem)
public void dispose()
ItemFactoryAll 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 ItemFactory.dispose() or calls to
ItemFactory.disposeAllItems() are possible.
dispose in interface ItemFactorypublic void disposeAllItems()
ItemFactoryAfter a call to this method it is still possible to create new items
disposeAllItems in interface ItemFactorypublic void disposeItem(DataItem dataItem)
ItemFactoryIf the item was not created by this factory or was already disposed this is no error and no exception is thrown
disposeItem in interface ItemFactorydataItem - data item to dispose
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0