Tuscany Assembly Model

org.apache.tuscany.model.assembly.impl
Class ConfiguredPortImpl<P extends Port>

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ConfiguredPortImpl<P>
All Implemented Interfaces:
AssemblyObject, ConfiguredPort<P>, ProxyFactoryHolder
Direct Known Subclasses:
ConfiguredReferenceImpl, ConfiguredServiceImpl

public abstract class ConfiguredPortImpl<P extends Port>
extends AssemblyObjectImpl
implements ConfiguredPort<P>

Implementation of ConfiguredPort.


Constructor Summary
protected ConfiguredPortImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 String getName()
          Returns the name of the port being configured.
 Part getPart()
          Returns the part containing this port.
 P getPort()
          Returns the port that is being configured.
 Object getProxyFactory()
          Returns the proxy factory
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
 void setName(String name)
          Set the name of the port being configured.
 void setPart(Part part)
          Sets the configured part containing this port.
 void setPort(P port)
          Sets the port that is being configured.
 void setProxyFactory(Object proxyFactory)
          Sets the proxy factory
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
accept, checkInitialized, checkNotFrozen, freeze, initialize, isFrozen, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredPortImpl

protected ConfiguredPortImpl()
Method Detail

getName

public String getName()
Description copied from interface: ConfiguredPort
Returns the name of the port being configured.

Specified by:
getName in interface ConfiguredPort<P extends Port>
Returns:
the name of the port being configured

setName

public void setName(String name)
Description copied from interface: ConfiguredPort
Set the name of the port being configured.

Specified by:
setName in interface ConfiguredPort<P extends Port>
Parameters:
name - the name of the port being configured

getPort

public P getPort()
Description copied from interface: ConfiguredPort
Returns the port that is being configured.

Specified by:
getPort in interface ConfiguredPort<P extends Port>
Returns:
the port that is being configured

setPort

public void setPort(P port)
Description copied from interface: ConfiguredPort
Sets the port that is being configured.

Specified by:
setPort in interface ConfiguredPort<P extends Port>
Parameters:
port - the port that is being configured

getPart

public Part getPart()
Description copied from interface: ConfiguredPort
Returns the part containing this port.

Specified by:
getPart in interface ConfiguredPort<P extends Port>
Returns:
the part that contains this port

setPart

public void setPart(Part part)
Description copied from interface: ConfiguredPort
Sets the configured part containing this port.

Specified by:
setPart in interface ConfiguredPort<P extends Port>
Parameters:
part - the configured part containing this port.

getProxyFactory

public Object getProxyFactory()
Description copied from interface: ProxyFactoryHolder
Returns the proxy factory

Specified by:
getProxyFactory in interface ProxyFactoryHolder

setProxyFactory

public void setProxyFactory(Object proxyFactory)
Description copied from interface: ProxyFactoryHolder
Sets the proxy factory

Specified by:
setProxyFactory in interface ProxyFactoryHolder

initialize

public void initialize(AssemblyContext modelContext)
Description copied from interface: AssemblyObject
Initialize this model object.

Specified by:
initialize in interface AssemblyObject
Overrides:
initialize in class AssemblyObjectImpl
Parameters:
modelContext - context providing access to the environment in which this model is being used

freeze

public void freeze()
Description copied from interface: AssemblyObject
Freeze this model object preventing any additional changes.

Specified by:
freeze in interface AssemblyObject
Overrides:
freeze in class AssemblyObjectImpl

accept

public boolean accept(AssemblyVisitor visitor)
Description copied from interface: AssemblyObject
Accept a visitor

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class AssemblyObjectImpl
Parameters:
visitor - a visitor that is visiting the model
Returns:
true if processing is complete and the visitor should stop traversing the model

Tuscany Assembly Model

-