java.lang.Object
org.praxislive.base.AbstractComponent
org.praxislive.base.AbstractContainer
- All Implemented Interfaces:
org.praxislive.core.Component,org.praxislive.core.Container,org.praxislive.core.Lookup.Provider
- Direct Known Subclasses:
AbstractContainer.Delegate
public abstract class AbstractContainer
extends AbstractComponent
implements org.praxislive.core.Container
Abstract base class for
Container supporting all controls of
ContainerProtocol.
Use the AbstractContainer.Delegate subclass to reuse the functionality here inside an
alternative Container implementation (see eg. use in
AbstractRootContainer ).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classstatic classDelegate base class to be used inside a wrapper class implementingContainer.protected classprotected class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchildren()protected voidprotected voiddisconnect(String component1, String port1, String component2, String port2) org.praxislive.core.ComponentAddressgetAddress(org.praxislive.core.Component child) org.praxislive.core.Componentprotected StringgetChildID(org.praxislive.core.Component child) org.praxislive.core.Lookuporg.praxislive.core.ComponentTypegetType(org.praxislive.core.Component child) voidprotected voidnotifyChild(org.praxislive.core.Component child) protected voidrecordChildType(org.praxislive.core.Component child, org.praxislive.core.ComponentType type) protected org.praxislive.core.ComponentremoveChild(String id) voidwrite(org.praxislive.core.TreeWriter writer) protected final voidwriteChildren(org.praxislive.core.TreeWriter writer) protected final voidwriteConnections(org.praxislive.core.TreeWriter writer) Methods inherited from class org.praxislive.base.AbstractComponent
disconnectAll, findService, getAddress, getControl, getParent, getPort, parentNotify, registerControl, registerPort, unregisterControl, unregisterPort, writeMeta, writeTypeAndInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.Component
getControl, getInfo, getParent, getPort, parentNotify
-
Constructor Details
-
AbstractContainer
protected AbstractContainer()
-
-
Method Details
-
getChild
- Specified by:
getChildin interfaceorg.praxislive.core.Container
-
children
- Specified by:
childrenin interfaceorg.praxislive.core.Container
-
getAddress
public org.praxislive.core.ComponentAddress getAddress(org.praxislive.core.Component child) - Specified by:
getAddressin interfaceorg.praxislive.core.Container
-
getType
public org.praxislive.core.ComponentType getType(org.praxislive.core.Component child) - Specified by:
getTypein interfaceorg.praxislive.core.Container
-
hierarchyChanged
public void hierarchyChanged()- Specified by:
hierarchyChangedin interfaceorg.praxislive.core.Component- Overrides:
hierarchyChangedin classAbstractComponent
-
getLookup
public org.praxislive.core.Lookup getLookup()- Specified by:
getLookupin interfaceorg.praxislive.core.Lookup.Provider- Overrides:
getLookupin classAbstractComponent
-
write
public void write(org.praxislive.core.TreeWriter writer) - Specified by:
writein interfaceorg.praxislive.core.Component- Specified by:
writein interfaceorg.praxislive.core.Container- Overrides:
writein classAbstractComponent
-
writeChildren
protected final void writeChildren(org.praxislive.core.TreeWriter writer) -
writeConnections
protected final void writeConnections(org.praxislive.core.TreeWriter writer) -
addChild
protected void addChild(String id, org.praxislive.core.Component child) throws org.praxislive.core.VetoException - Throws:
org.praxislive.core.VetoException
-
recordChildType
protected void recordChildType(org.praxislive.core.Component child, org.praxislive.core.ComponentType type) -
notifyChild
protected void notifyChild(org.praxislive.core.Component child) throws org.praxislive.core.VetoException - Throws:
org.praxislive.core.VetoException
-
removeChild
-
getChildID
-
connect
protected void connect(String component1, String port1, String component2, String port2) throws org.praxislive.core.PortConnectionException - Throws:
org.praxislive.core.PortConnectionException
-
disconnect
-