Class AbstractComponent

  • All Implemented Interfaces:
    org.praxislive.core.Component
    Direct Known Subclasses:
    AbstractContainer

    public abstract class AbstractComponent
    extends Object
    implements org.praxislive.core.Component
    Abstract base implementation of Component supporting Control and Port management. A ComponentProtocol.INFO control is added automatically, returning the information provided by the abstract Component.getInfo() method.
    • Constructor Detail

      • AbstractComponent

        protected AbstractComponent()
    • Method Detail

      • getParent

        public org.praxislive.core.Container getParent()
        Specified by:
        getParent in interface org.praxislive.core.Component
      • parentNotify

        public void parentNotify​(org.praxislive.core.Container parent)
                          throws org.praxislive.core.VetoException
        Specified by:
        parentNotify in interface org.praxislive.core.Component
        Throws:
        org.praxislive.core.VetoException
      • hierarchyChanged

        public void hierarchyChanged()
        Specified by:
        hierarchyChanged in interface org.praxislive.core.Component
      • getControl

        public org.praxislive.core.Control getControl​(String id)
        Specified by:
        getControl in interface org.praxislive.core.Component
      • getPort

        public org.praxislive.core.Port getPort​(String id)
        Specified by:
        getPort in interface org.praxislive.core.Component
      • getAddress

        protected org.praxislive.core.ComponentAddress getAddress()
      • getLookup

        protected org.praxislive.core.Lookup getLookup()
      • findService

        protected org.praxislive.core.ComponentAddress findService​(Class<? extends org.praxislive.core.services.Service> service)
                                                            throws org.praxislive.core.services.ServiceUnavailableException
        Throws:
        org.praxislive.core.services.ServiceUnavailableException
      • disconnectAll

        protected void disconnectAll()
      • registerControl

        protected final void registerControl​(String id,
                                             org.praxislive.core.Control control)
      • unregisterControl

        protected final void unregisterControl​(String id)
      • registerPort

        protected final void registerPort​(String id,
                                          org.praxislive.core.Port port)
      • unregisterPort

        protected final void unregisterPort​(String id)