java.lang.Object
org.praxislive.base.AbstractComponent
- All Implemented Interfaces:
org.praxislive.core.Component
- Direct Known Subclasses:
AbstractContainer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected org.praxislive.core.ComponentAddressfindService(Class<? extends org.praxislive.core.services.Service> service) protected org.praxislive.core.ComponentAddressorg.praxislive.core.ControlgetControl(String id) protected org.praxislive.core.Lookuporg.praxislive.core.Containerorg.praxislive.core.PortvoidvoidparentNotify(org.praxislive.core.Container parent) protected final voidregisterControl(String id, org.praxislive.core.Control control) protected final voidregisterPort(String id, org.praxislive.core.Port port) protected final voidprotected final voidunregisterPort(String id) voidwrite(org.praxislive.core.TreeWriter writer) protected final voidwriteMeta(org.praxislive.core.TreeWriter writer) protected final voidwriteTypeAndInfo(org.praxislive.core.TreeWriter writer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.Component
getInfo
-
Constructor Details
-
AbstractComponent
protected AbstractComponent()
-
-
Method Details
-
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
- Specified by:
getControlin interfaceorg.praxislive.core.Component
-
getPort
- Specified by:
getPortin interfaceorg.praxislive.core.Component
-
write
public void write(org.praxislive.core.TreeWriter writer) - Specified by:
writein interfaceorg.praxislive.core.Component
-
writeTypeAndInfo
protected final void writeTypeAndInfo(org.praxislive.core.TreeWriter writer) -
writeMeta
protected final void writeMeta(org.praxislive.core.TreeWriter writer) -
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
-
unregisterControl
-
registerPort
-
unregisterPort
-