- java.lang.Object
-
- org.praxislive.base.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 ofComponentsupportingControlandPortmanagement. AComponentProtocol.INFOcontrol is added automatically, returning the information provided by the abstractComponent.getInfo()method.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisconnectAll()protected org.praxislive.core.ComponentAddressfindService(Class<? extends org.praxislive.core.services.Service> service)protected org.praxislive.core.ComponentAddressgetAddress()org.praxislive.core.ControlgetControl(String id)protected org.praxislive.core.LookupgetLookup()org.praxislive.core.ContainergetParent()org.praxislive.core.PortgetPort(String id)voidhierarchyChanged()voidparentNotify(org.praxislive.core.Container parent)protected voidregisterControl(String id, org.praxislive.core.Control control)protected voidregisterPort(String id, org.praxislive.core.Port port)protected voidunregisterControl(String id)protected voidunregisterPort(String id)
-
-
-
Method Detail
-
getParent
public org.praxislive.core.Container getParent()
- Specified by:
getParentin interfaceorg.praxislive.core.Component
-
parentNotify
public void parentNotify(org.praxislive.core.Container parent) throws org.praxislive.core.VetoException- Specified by:
parentNotifyin interfaceorg.praxislive.core.Component- Throws:
org.praxislive.core.VetoException
-
hierarchyChanged
public void hierarchyChanged()
- Specified by:
hierarchyChangedin interfaceorg.praxislive.core.Component
-
getControl
public org.praxislive.core.Control getControl(String id)
- Specified by:
getControlin interfaceorg.praxislive.core.Component
-
getPort
public org.praxislive.core.Port getPort(String id)
- Specified by:
getPortin interfaceorg.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)
-
-