Package org.oddjob
Interface Structural
- All Known Subinterfaces:
DomainNode
- All Known Implementing Classes:
AndState,ArchiveBrowserJob,ArchiveJob,BasicBusService,CascadeJob,CascadeJobDeprecated,ChildHelper,EqualsState,EventJobBase,ForEachJob,ForEvents,GrabJob,IfJob,JMXClientJob,JMXServiceJob,JobFolder,JoinJob,ListSource,MultiExplorerLauncher,Oddjob,OddjobPanel,OrState,ParallelJob,RepeatJob,Resets,Retry,RunJob,ScheduleBase,SequentialJob,ServerMainBean,SimpleDomainNode,SimultaneousStructural,SplitDestinations,SshSequenceJob,StateReflector,StructuralJob,SwitchJob,TaskExecutionService,Timer,TimerBase,Trigger,Trigger,WebClientJob,When
public interface Structural
A class which implements this interface will inform listeners
when it's structure changes. A structural change is when a child
component is added or removed from the implementing class. A new
listener must receive add notifications for all existing children
as there is no other way to determine the existing structure of
an implementing class.
- Author:
- Rob Gordon
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStructuralListener(StructuralListener listener) Add a listener.voidremoveStructuralListener(StructuralListener listener) Remove a listener.
-
Method Details
-
addStructuralListener
Add a listener. The listener will immediately receive add notifications for all existing children.- Parameters:
listener- The listener.
-
removeStructuralListener
Remove a listener.- Parameters:
listener- The listener.
-