- java.lang.Object
-
- org.praxislive.core.services.RootFactoryService
-
- Direct Known Subclasses:
CodeRootFactoryService
public class RootFactoryService extends Object implements Service
AService
for creating new root instances. The implementation of this service will discover all availableComponentFactory
and either create an instance of the component viaComponentFactory.createRoot(org.praxislive.core.ComponentType)
or delegate creation to the correctComponentFactory.rootRedirect()
.
-
-
Nested Class Summary
-
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 String
NEW_ROOT_INSTANCE
Control ID of the new root instance control.static ControlInfo
NEW_ROOT_INSTANCE_INFO
ControlInfo of the new root instance control.
-
Constructor Summary
Constructors Constructor Description RootFactoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<String>
controls()
The names of the controls that a component advertising this protocol must provide.ControlInfo
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, wait
-
Methods inherited from interface org.praxislive.core.Protocol
optionalControls
-
-
-
-
Field Detail
-
NEW_ROOT_INSTANCE
public static final String NEW_ROOT_INSTANCE
Control ID of the new root instance control.- See Also:
- Constant Field Values
-
NEW_ROOT_INSTANCE_INFO
public static final ControlInfo NEW_ROOT_INSTANCE_INFO
ControlInfo of the new root instance control.
-
-
Method Detail
-
controls
public Stream<String> controls()
Description copied from interface:Protocol
The names of the controls that a component advertising this protocol must provide.
-
getControlInfo
public ControlInfo getControlInfo(String control)
Description copied from interface:Protocol
Query 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:
getControlInfo
in interfaceProtocol
- Parameters:
control
- name of control- Returns:
- control info for named control
-
-