- java.lang.Object
-
- org.praxislive.code.CodeContextFactoryService
-
public class CodeContextFactoryService extends Object implements Service
AServicefor creating newCodeContext. Must be running in the same process as the CodeComponent due to Task and Result references. Should make use of aCodeCompilerServiceimplementation for compiling source code (which does support other processes).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodeContextFactoryService.Result<D extends CodeDelegate>Result from service on successful creation of context and delegate.static 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
Fields Modifier and Type Field Description static StringNEW_CONTEXTstatic ControlInfoNEW_CONTEXT_INFO
-
Constructor Summary
Constructors Constructor Description CodeContextFactoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<String>controls()ControlInfogetControlInfo(String control)
-
-
-
Field Detail
-
NEW_CONTEXT
public static final String NEW_CONTEXT
- See Also:
- Constant Field Values
-
NEW_CONTEXT_INFO
public static final ControlInfo NEW_CONTEXT_INFO
-
-
Method Detail
-
getControlInfo
public ControlInfo getControlInfo(String control)
- Specified by:
getControlInfoin interfaceProtocol
-
-