Tuscany Assembly Model

org.apache.tuscany.model.assembly.impl
Class ExternalServiceImpl

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.model.assembly.impl.PartImpl
              extended by org.apache.tuscany.model.assembly.impl.ExternalServiceImpl
All Implemented Interfaces:
AssemblyObject, ContextFactoryHolder, Extensible, ExternalService, Part

public class ExternalServiceImpl
extends PartImpl
implements ExternalService

An implementation ExternalService.


Constructor Summary
protected ExternalServiceImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 List<Binding> getBindings()
          Returns the bindings that can be used by operations on this external service.
 ConfiguredService getConfiguredService()
          Returns the configured service that this external service provides to other parts of the containing composite.
 Object getContextFactory()
          Returns the context factory
 OverrideOption getOverrideOption()
          Returns the override option that determines if any wiring for this external service that is contained in this composite can be overridden by wired supplied from outside.
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
 void setConfiguredService(ConfiguredService configuredService)
          Sets the configured service that this external service provides to other parts of the containing composite
 void setContextFactory(Object contextFactory)
          Sets the context factory
 void setOverrideOption(OverrideOption newOverridable)
          Set the override option that determines if any wiring for this external service that is contained in this composite can be overridden by wired supplied from outside.
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.PartImpl
getComposite, getName, setComposite, setName
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.ExtensibleImpl
getExtensibilityAttributes, getExtensibilityElements
 
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
 
Methods inherited from interface org.apache.tuscany.model.assembly.Part
getComposite, getName, setComposite, setName
 
Methods inherited from interface org.apache.tuscany.model.assembly.Extensible
getExtensibilityAttributes, getExtensibilityElements
 

Constructor Detail

ExternalServiceImpl

protected ExternalServiceImpl()
Method Detail

getOverrideOption

public OverrideOption getOverrideOption()
Description copied from interface: ExternalService
Returns the override option that determines if any wiring for this external service that is contained in this composite can be overridden by wired supplied from outside.

Specified by:
getOverrideOption in interface ExternalService

setOverrideOption

public void setOverrideOption(OverrideOption newOverridable)
Description copied from interface: ExternalService
Set the override option that determines if any wiring for this external service that is contained in this composite can be overridden by wired supplied from outside.

Specified by:
setOverrideOption in interface ExternalService
Parameters:
newOverridable - the option that determines how wires can be overriden

getBindings

public List<Binding> getBindings()
Description copied from interface: ExternalService
Returns the bindings that can be used by operations on this external service. A single external service may be bound to multiple transports.

Specified by:
getBindings in interface ExternalService

getConfiguredService

public ConfiguredService getConfiguredService()
Description copied from interface: ExternalService
Returns the configured service that this external service provides to other parts of the containing composite.

Specified by:
getConfiguredService in interface ExternalService
Returns:
the configured service that this external service provides to other parts of the containing composite

setConfiguredService

public void setConfiguredService(ConfiguredService configuredService)
Description copied from interface: ExternalService
Sets the configured service that this external service provides to other parts of the containing composite

Specified by:
setConfiguredService in interface ExternalService
Parameters:
configuredService - the configured service that this external service provides to other parts of the containing composite

getContextFactory

public Object getContextFactory()
Description copied from interface: ContextFactoryHolder
Returns the context factory

Specified by:
getContextFactory in interface ContextFactoryHolder
Overrides:
getContextFactory in class PartImpl

setContextFactory

public void setContextFactory(Object contextFactory)
Description copied from interface: ContextFactoryHolder
Sets the context factory

Specified by:
setContextFactory in interface ContextFactoryHolder
Overrides:
setContextFactory in class PartImpl

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 ExtensibleImpl
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 ExtensibleImpl

accept

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

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class ExtensibleImpl
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

-