java.lang.Object
org.praxislive.code.CodeContextFactoryService
A
Service for creating new CodeContext. Must be running in
the same process as the CodeComponent due to Task and Result references.
Should make use of a CodeCompilerService implementation for compiling
source code (which does support other processes).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult from service on successful creation of context and delegate.static final classCodeContextFactoryService.Task<D extends CodeDelegate>Task sent to the service to request a context and delegate be created from the provided source code.Nested classes/interfaces inherited from interface org.praxislive.core.Protocol
Protocol.Type<T extends Protocol>, Protocol.TypeProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringControl ID of the new context control.static final ControlInfoControlInfo for the new context control. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontrols()The names of the controls that a component advertising this protocol must provide.getControlInfo(String control) Query the ControlInfo for the provided control name on this protocol.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.Protocol
optionalControls
-
Field Details
-
NEW_CONTEXT
Control ID of the new context control.- See Also:
-
NEW_CONTEXT_INFO
ControlInfo for the new context control.
-
-
Constructor Details
-
CodeContextFactoryService
public CodeContextFactoryService()
-
-
Method Details
-
controls
Description copied from interface:ProtocolThe names of the controls that a component advertising this protocol must provide. -
getControlInfo
Description copied from interface:ProtocolQuery the ControlInfo for the provided control name on this protocol. The component implementing this protocol will generally use the control info provided here inside its component info. In exceptional circumstances, the component may extend or adapt the behaviour of the control, as long as it is fully compatible with this control info and the specification.- Specified by:
getControlInfoin interfaceProtocol- Parameters:
control- name of control- Returns:
- control info for named control
-