Class AbstractComponentFactory

  • All Implemented Interfaces:
    org.praxislive.core.services.ComponentFactory

    public class AbstractComponentFactory
    extends Object
    implements org.praxislive.core.services.ComponentFactory
    • Constructor Detail

      • AbstractComponentFactory

        protected AbstractComponentFactory()
    • Method Detail

      • componentTypes

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

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

        public 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
      • createRootComponent

        public org.praxislive.core.Root createRootComponent​(org.praxislive.core.ComponentType type)
                                                     throws org.praxislive.core.services.ComponentInstantiationException
        Specified by:
        createRootComponent in interface org.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:
        getMetaData in interface org.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:
        getRootMetaData in interface org.praxislive.core.services.ComponentFactory
      • add

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

        protected void addRoot​(String type,
                               Class<? extends org.praxislive.core.Root> cls)