Module org.praxislive.code
Package org.praxislive.code
Class CodeRoot.Context<D extends CodeRootDelegate>
- java.lang.Object
-
- org.praxislive.code.CodeContext<D>
-
- org.praxislive.code.CodeRoot.Context<D>
-
- Type Parameters:
D- wrapped delegate base type
- Direct Known Subclasses:
CodeRootContainer.Context
- Enclosing class:
- CodeRoot<D extends CodeRootDelegate>
public static class CodeRoot.Context<D extends CodeRootDelegate> extends CodeContext<D>
CodeContext subclass for CodeRoots.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener
-
-
Constructor Summary
Constructors Constructor Description Context(CodeRoot.Connector<D> connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeRoot<D>getComponent()Get the code component this code context is attached to, if there is one.protected voidstarting(ExecutionContext source, boolean fullStart)Hook called when the execution context is started (moves to stateExecutionContext.State.ACTIVE) or the context is added to a component within an active execution context.protected voidstopping(ExecutionContext source, boolean fullStop)Hook called when the execution context is stopped (moves away from stateExecutionContext.State.ACTIVE) or the context is removed from a component within an active execution context.-
Methods inherited from class org.praxislive.code.CodeContext
addClockListener, checkActive, configure, dispose, flush, getAddress, getControl, getControlDescriptor, getControlIDs, getDelegate, getExecutionContext, getInfo, getLog, getLogLevel, getLookup, getPort, getPortDescriptor, getPortIDs, getTime, hierarchyChanged, invoke, invokeCallable, locateService, log, removeClockListener, reset, starting, stopping, tick, update
-
-
-
-
Constructor Detail
-
Context
public Context(CodeRoot.Connector<D> connector)
-
-
Method Detail
-
getComponent
public CodeRoot<D> getComponent()
Description copied from class:CodeContextGet the code component this code context is attached to, if there is one.- Overrides:
getComponentin classCodeContext<D extends CodeRootDelegate>- Returns:
- code component, or null
-
starting
protected void starting(ExecutionContext source, boolean fullStart)
Description copied from class:CodeContextHook called when the execution context is started (moves to stateExecutionContext.State.ACTIVE) or the context is added to a component within an active execution context. Full start will be true in the former case when the execution context itself is changing state.This method may be overridden in subclasses. The default implementation delegates to
CodeContext.starting(org.praxislive.core.ExecutionContext).- Overrides:
startingin classCodeContext<D extends CodeRootDelegate>- Parameters:
source- execution contextfullStart- whether the context itself is transitioning state
-
stopping
protected void stopping(ExecutionContext source, boolean fullStop)
Description copied from class:CodeContextHook called when the execution context is stopped (moves away from stateExecutionContext.State.ACTIVE) or the context is removed from a component within an active execution context. Full stop will be true in the former case when the execution context itself is changing state.This method may be overridden in subclasses. The default implementation delegates to
CodeContext.stopping(org.praxislive.core.ExecutionContext).- Overrides:
stoppingin classCodeContext<D extends CodeRootDelegate>- Parameters:
source- execution contextfullStop- whether the context itself is transitioning state
-
-