Class LazyDataContainerUnit
java.lang.Object
com.pnfsoftware.jeb.core.events.JebEventSource
com.pnfsoftware.jeb.core.units.AbstractUnit
com.pnfsoftware.jeb.core.units.impl.ContainerUnit
com.pnfsoftware.jeb.core.units.impl.LazyDataContainerUnit
- All Implemented Interfaces:
IUnitCreator,IUserDataSupport,IUnit,IEventSource
A data container unit that fetches the data of its nodes only when necessary.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNode of a lazy container unit. -
Field Summary
Fields inherited from class com.pnfsoftware.jeb.core.units.impl.ContainerUnit
CONTAINERS_FIRSTFields inherited from class com.pnfsoftware.jeb.core.events.JebEventSource
onEventCallCount -
Constructor Summary
ConstructorsConstructorDescriptionLazyDataContainerUnit(LazyDataContainerUnit.Entry root, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm) Create a lazy data container unit. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(boolean processLeaves) Process the container.static voidregister(IUnit caller, Collection<LazyDataContainerUnit.Entry> entries) Register entries as child units.Methods inherited from class com.pnfsoftware.jeb.core.units.impl.ContainerUnit
equals, getChildren, getRootContainer, hashCode, processMethods inherited from class com.pnfsoftware.jeb.core.units.AbstractUnit
addChild, addChild, addChild, addNotification, canBePersisted, clearAllData, dispose, finalize, generateQuickState, getAllData, getContributions, getCreationTimestamp, getData, getDescription, getFormatter, getFormatType, getIconData, getInterpreters, getLock, getName, getNotes, getNotificationManager, getParent, getPropertyDefinitionManager, getPropertyManager, getRealName, getStatus, getUid, getUnitProcessor, hasChildren, initializePropertyObjects, internalSwapChildren, isDeserialized, isDisposed, isProcessed, isStale, isTransientChild, logError, logException, logInfo, logTrace, logWarn, onPropertyChange, postDeserialization, processInternal, removeChild, removeChild, setChild, setChild, setData, setName, setNotes, setParent, setProcessed, setProcessed, setRealName, setStatus, setStatus, setUnitProcessor, toStringMethods inherited from class com.pnfsoftware.jeb.core.events.JebEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, notifyListeners, notifyListeners, removeListener, setParentSourceMethods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSourceMethods inherited from interface com.pnfsoftware.jeb.core.units.IUnit
execprvfunc, getExtraInputs, getInput, getParentArtifact, getParentProject, notifyGenericChange
-
Constructor Details
-
LazyDataContainerUnit
public LazyDataContainerUnit(LazyDataContainerUnit.Entry root, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm) Create a lazy data container unit.- Parameters:
root- root entryunitProcessor- unit processorparent- parent unit or artifactpdm- property definition manager
-
-
Method Details
-
process
public boolean process(boolean processLeaves) Description copied from class:ContainerUnitProcess the container.- Overrides:
processin classContainerUnit- Parameters:
processLeaves- true to process leaf units- Returns:
- true if processing succeeded
-
register
Register entries as child units.- Parameters:
caller- parent unitentries- entries to register
-