Class AbstractComponentFactory

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
  • Constructor Details

    • AbstractComponentFactory

      protected AbstractComponentFactory()
  • Method Details

    • componentTypes

      public final Stream<org.praxislive.core.ComponentType> componentTypes()
      Specified by:
      componentTypes in interface org.praxislive.core.services.ComponentFactory
    • rootTypes

      public final Stream<org.praxislive.core.ComponentType> rootTypes()
      Specified by:
      rootTypes in interface org.praxislive.core.services.ComponentFactory
    • createComponent

      public final org.praxislive.core.Component createComponent(org.praxislive.core.ComponentType type) throws org.praxislive.core.services.ComponentInstantiationException
      Specified by:
      createComponent in interface org.praxislive.core.services.ComponentFactory
      Throws:
      org.praxislive.core.services.ComponentInstantiationException
    • createRoot

      public final org.praxislive.core.Root createRoot(org.praxislive.core.ComponentType type) throws org.praxislive.core.services.ComponentInstantiationException
      Specified by:
      createRoot in interface org.praxislive.core.services.ComponentFactory
      Throws:
      org.praxislive.core.services.ComponentInstantiationException
    • componentData

      public final org.praxislive.core.Lookup componentData(org.praxislive.core.ComponentType type)
      Specified by:
      componentData in interface org.praxislive.core.services.ComponentFactory
    • rootData

      public final org.praxislive.core.Lookup rootData(org.praxislive.core.ComponentType type)
      Specified by:
      rootData in interface org.praxislive.core.services.ComponentFactory
    • add

      protected void add(String type, Class<? extends org.praxislive.core.Component> cls)
    • add

      protected void add(String type, AbstractComponentFactory.Data<? extends org.praxislive.core.Component> info)
    • addRoot

      protected void addRoot(String type, Class<? extends org.praxislive.core.Root> cls)
    • 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)