- java.lang.Object
-
- org.praxislive.base.AbstractComponentFactory
-
- All Implemented Interfaces:
ComponentFactory
public class AbstractComponentFactory extends Object implements ComponentFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractComponentFactory.Data<T>-
Nested classes/interfaces inherited from interface org.praxislive.core.services.ComponentFactory
ComponentFactory.MetaData<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractComponentFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(String type, Class<? extends Component> cls)protected voidadd(String type, AbstractComponentFactory.Data<? extends Component> info)protected voidaddRoot(String type, Class<? extends Root> cls)protected voidaddRoot(String type, AbstractComponentFactory.Data<? extends Root> info)Stream<ComponentType>componentTypes()ComponentcreateComponent(ComponentType type)RootcreateRootComponent(ComponentType type)static <T> AbstractComponentFactory.Data<T>data(Class<T> cls)ComponentFactory.MetaData<? extends Component>getMetaData(ComponentType type)ComponentFactory.MetaData<? extends Root>getRootMetaData(ComponentType type)Stream<ComponentType>rootTypes()-
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.services.ComponentFactory
getFactoryService, getRootFactoryService
-
-
-
-
Method Detail
-
componentTypes
public Stream<ComponentType> componentTypes()
- Specified by:
componentTypesin interfaceComponentFactory
-
rootTypes
public Stream<ComponentType> rootTypes()
- Specified by:
rootTypesin interfaceComponentFactory
-
createComponent
public Component createComponent(ComponentType type) throws ComponentInstantiationException
- Specified by:
createComponentin interfaceComponentFactory- Throws:
ComponentInstantiationException
-
createRootComponent
public Root createRootComponent(ComponentType type) throws ComponentInstantiationException
- Specified by:
createRootComponentin interfaceComponentFactory- Throws:
ComponentInstantiationException
-
getMetaData
public ComponentFactory.MetaData<? extends Component> getMetaData(ComponentType type)
- Specified by:
getMetaDatain interfaceComponentFactory
-
getRootMetaData
public ComponentFactory.MetaData<? extends Root> getRootMetaData(ComponentType type)
- Specified by:
getRootMetaDatain interfaceComponentFactory
-
add
protected void add(String type, AbstractComponentFactory.Data<? extends Component> info)
-
addRoot
protected void addRoot(String type, AbstractComponentFactory.Data<? extends Root> info)
-
data
public static <T> AbstractComponentFactory.Data<T> data(Class<T> cls)
-
-