public class DefaultChainItemFactory extends FolderItemFactory
In order to apply your own chain you may override
applyChain(DataItemBaseChained)
folder
hive
DEFAULT_ID_DELIMITER, itemMap
Constructor and Description |
---|
DefaultChainItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
DefaultChainItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName,
String idDelimiter) |
DefaultChainItemFactory(HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyChain(DataItemBaseChained item)
Apply our chain of elements
|
DataItemInputChained |
constructInput(String localId) |
WriteHandlerItem |
constructInputOutput(String localId,
WriteHandler writeHandler) |
protected WriteHandlerItem |
constructWriteHandler(String localId,
WriteHandler writeHandler) |
DefaultChainItemFactory |
createSubFolderFactory(String name)
Create a new sub factory
|
addToFolder, constructCommand, dispose, disposeAllItems, disposeItem, getFolder
addSubFactory, createCommand, createInput, createInputOutput, createOutput, generateId, getBaseId, isDisposed, removeSubFactory, setIdDelimiter
public DefaultChainItemFactory(HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public DefaultChainItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName, String idDelimiter)
public DefaultChainItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public DefaultChainItemFactory createSubFolderFactory(String name)
Sub-factories get disposed when the parent factory is disposed
createSubFolderFactory
in class FolderItemFactory
name
- the name of the sub-factory, this will be the folder name and
added to the item id as local partpublic DataItemInputChained constructInput(String localId)
constructInput
in class FolderItemFactory
public WriteHandlerItem constructInputOutput(String localId, WriteHandler writeHandler)
constructInputOutput
in class FolderItemFactory
protected WriteHandlerItem constructWriteHandler(String localId, WriteHandler writeHandler)
constructWriteHandler
in class FolderItemFactory
protected void applyChain(DataItemBaseChained item)
item
- the item to which the chain should be applied