- java.lang.Object
-
- org.praxislive.base.AbstractComponentFactory
-
- All Implemented Interfaces:
org.praxislive.core.services.ComponentFactory
public class AbstractComponentFactory extends Object implements org.praxislive.core.services.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
org.praxislive.core.services.ComponentFactory.MetaData<T extends Object>
-
-
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 org.praxislive.core.Component> cls)protected voidadd(String type, AbstractComponentFactory.Data<? extends org.praxislive.core.Component> info)protected voidaddRoot(String type, Class<? extends org.praxislive.core.Root> cls)protected voidaddRoot(String type, AbstractComponentFactory.Data<? extends org.praxislive.core.Root> info)Stream<org.praxislive.core.ComponentType>componentTypes()org.praxislive.core.ComponentcreateComponent(org.praxislive.core.ComponentType type)org.praxislive.core.RootcreateRootComponent(org.praxislive.core.ComponentType type)static <T> AbstractComponentFactory.Data<T>data(Class<T> cls)org.praxislive.core.services.ComponentFactory.MetaData<? extends org.praxislive.core.Component>getMetaData(org.praxislive.core.ComponentType type)org.praxislive.core.services.ComponentFactory.MetaData<? extends org.praxislive.core.Root>getRootMetaData(org.praxislive.core.ComponentType type)Stream<org.praxislive.core.ComponentType>rootTypes()
-
-
-
Method Detail
-
componentTypes
public Stream<org.praxislive.core.ComponentType> componentTypes()
- Specified by:
componentTypesin interfaceorg.praxislive.core.services.ComponentFactory
-
rootTypes
public Stream<org.praxislive.core.ComponentType> rootTypes()
- Specified by:
rootTypesin interfaceorg.praxislive.core.services.ComponentFactory
-
createComponent
public org.praxislive.core.Component createComponent(org.praxislive.core.ComponentType type) throws org.praxislive.core.services.ComponentInstantiationException- Specified by:
createComponentin interfaceorg.praxislive.core.services.ComponentFactory- Throws:
org.praxislive.core.services.ComponentInstantiationException
-
createRootComponent
public org.praxislive.core.Root createRootComponent(org.praxislive.core.ComponentType type) throws org.praxislive.core.services.ComponentInstantiationException- Specified by:
createRootComponentin interfaceorg.praxislive.core.services.ComponentFactory- Throws:
org.praxislive.core.services.ComponentInstantiationException
-
getMetaData
public org.praxislive.core.services.ComponentFactory.MetaData<? extends org.praxislive.core.Component> getMetaData(org.praxislive.core.ComponentType type)
- Specified by:
getMetaDatain interfaceorg.praxislive.core.services.ComponentFactory
-
getRootMetaData
public org.praxislive.core.services.ComponentFactory.MetaData<? extends org.praxislive.core.Root> getRootMetaData(org.praxislive.core.ComponentType type)
- Specified by:
getRootMetaDatain interfaceorg.praxislive.core.services.ComponentFactory
-
add
protected void add(String type, AbstractComponentFactory.Data<? extends org.praxislive.core.Component> info)
-
addRoot
protected void addRoot(String type, AbstractComponentFactory.Data<? extends org.praxislive.core.Root> info)
-
data
public static <T> AbstractComponentFactory.Data<T> data(Class<T> cls)
-
-