java.lang.Object
org.praxislive.code.AbstractComponentFactory
- All Implemented Interfaces:
ComponentFactory
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.praxislive.core.services.ComponentFactory
ComponentFactory.Deprecated, ComponentFactory.Redirect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidadd(CodeFactory<?> factory) protected voidaddRoot(CodeFactory<? extends CodeRootDelegate> factory) final LookupcomponentData(ComponentType type) Query the data associated with this component type.Optional service to redirect to for component instantiation.final Stream<ComponentType> Component types provided by this factory.protected AbstractComponentFactory.Datadata(CodeFactory<?> factory) final LookuprootData(ComponentType type) Query the data associated with this root type.Optional service to redirect to for root instantiation.final Stream<ComponentType> Root types provided by this factory.protected StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.services.ComponentFactory
createComponent, createRoot
-
Constructor Details
-
AbstractComponentFactory
protected AbstractComponentFactory()
-
-
Method Details
-
componentTypes
Description copied from interface:ComponentFactoryComponent types provided by this factory.- Specified by:
componentTypesin interfaceComponentFactory- Returns:
- stream of component types
-
rootTypes
Description copied from interface:ComponentFactoryRoot types provided by this factory.- Specified by:
rootTypesin interfaceComponentFactory- Returns:
- stream of root types
-
componentData
Description copied from interface:ComponentFactoryQuery the data associated with this component type.- Specified by:
componentDatain interfaceComponentFactory- Parameters:
type- component type- Returns:
- lookup of data
-
rootData
Description copied from interface:ComponentFactoryQuery the data associated with this root type.- Specified by:
rootDatain interfaceComponentFactory- Parameters:
type- root type- Returns:
- lookup of data
-
componentRedirect
Description copied from interface:ComponentFactoryOptional service to redirect to for component instantiation. The control on the service should follow the same shape as the defaultComponentFactoryService.NEW_INSTANCE_INFO, accepting aComponentTypeand returning the component instance wrapped in aPReference.- Specified by:
componentRedirectin interfaceComponentFactory- Returns:
- optional service redirect
-
rootRedirect
Description copied from interface:ComponentFactoryOptional service to redirect to for root instantiation. The control on the service should follow the same shape as the defaultRootFactoryService.NEW_ROOT_INSTANCE_INFO, accepting aComponentTypeand returning the root instance wrapped in aPReference.- Specified by:
rootRedirectin interfaceComponentFactory- Returns:
- optional service redirect
-
add
-
add
-
addRoot
-
data
-
source
-