Tuscany Assembly Model

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

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyFactoryImpl
All Implemented Interfaces:
AssemblyFactory

public class AssemblyFactoryImpl
extends java.lang.Object
implements AssemblyFactory

Default implementation of AssemblyFactory


Constructor Summary
AssemblyFactoryImpl()
          Constructor
 
Method Summary
 ComponentType createComponentType()
          Returns a new ComponentType.
 ConfiguredProperty createConfiguredProperty()
          Returns a new ConfiguredProperty.
 ConfiguredReference createConfiguredReference()
          Returns a new ConfiguredReference.
 ConfiguredReference createConfiguredReference(java.lang.String name, java.lang.String... targets)
          Helper method for creating a configured reference.
 ConfiguredService createConfiguredService()
          Returns a new ConfiguredService.
 EntryPoint createEntryPoint()
          Returns a new EntryPoint.
 EntryPoint createEntryPoint(java.lang.String entryPointName, ConfiguredService configuredService, Binding binding, ConfiguredReference configuredReference)
          Helper method for creating an EntryPoint wired to a single target.
 EntryPoint createEntryPoint(java.lang.String entryPointName, ServiceContract serviceContract, Binding binding, java.lang.String targetName)
          Helper method for creating an EntryPoint wired to a single target.
 ExternalService createExternalService()
          Returns a new ExternalService.
 ImportWSDL createImportWSDL()
          Returns a new ImportWSDL model object.
 ImportWSDL createImportWSDL(java.lang.String location, java.lang.String namespace)
          Returns a new ImportWSDL model object initialized with the supplied values.
 JavaServiceContract createJavaServiceContract()
          Returns a new JavaServiceContract.
 Module createModule()
          Returns a new Module.
 ModuleComponent createModuleComponent()
          Returns a new ModuleComponent.
 ModuleFragment createModuleFragment()
          Returns a new ModuleFragment.
 Property createProperty()
          Returns a new Property.
 Property createProperty(java.lang.String name, java.lang.Class<?> type)
          Helper method for creating a simple Property.
 javax.xml.namespace.QName createQName(java.lang.String uri)
          Create a qname from a URI
 Reference createReference()
          Returns a new Reference.
 Reference createReference(java.lang.String name, java.lang.Class<?> service)
          Helper method for creating a reference.
 Reference createReference(java.lang.String name, java.lang.Class<?> service, Multiplicity multiplicity)
          Helper method for creating a reference.
 Service createService()
          Returns a new Service.
 ServiceURI createServiceURI(ModuleComponent moduleComponent, Part part, ConfiguredPort configuredPort)
          Creates a new ServiceURI from a module component and configured port.
 ServiceURI createServiceURI(ModuleComponent moduleComponent, java.lang.String serviceName)
          Creates a new ServiceURI from a module component and a service name.
 ServiceURI createServiceURI(ModuleComponent moduleComponent, java.lang.String partName, java.lang.String serviceName)
           
 ServiceURI createServiceURI(java.lang.String uri)
          Create a new ServiceURI from the given uri string.
 AtomicComponent createSimpleComponent()
          Returns a new SimpleComponent.
 Subsystem createSubsystem()
          Returns a new Subsystem.
 Wire createWire()
          Create a wire
 WSDLServiceContract createWSDLServiceContract()
          Returns a new WSDLServiceContract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblyFactoryImpl

public AssemblyFactoryImpl()
Constructor

Method Detail

createSimpleComponent

public AtomicComponent createSimpleComponent()
Description copied from interface: AssemblyFactory
Returns a new SimpleComponent.

Specified by:
createSimpleComponent in interface AssemblyFactory
Returns:
a new SimpleComponent

createComponentType

public ComponentType createComponentType()
Description copied from interface: AssemblyFactory
Returns a new ComponentType.

Specified by:
createComponentType in interface AssemblyFactory
Returns:
a new ComponentType

createEntryPoint

public EntryPoint createEntryPoint()
Description copied from interface: AssemblyFactory
Returns a new EntryPoint.

Specified by:
createEntryPoint in interface AssemblyFactory
Returns:
a new EntryPoint

createExternalService

public ExternalService createExternalService()
Description copied from interface: AssemblyFactory
Returns a new ExternalService.

Specified by:
createExternalService in interface AssemblyFactory
Returns:
a new ExternalService

createJavaServiceContract

public JavaServiceContract createJavaServiceContract()
Description copied from interface: AssemblyFactory
Returns a new JavaServiceContract.

Specified by:
createJavaServiceContract in interface AssemblyFactory
Returns:
a new JavaServiceContract

createModule

public Module createModule()
Description copied from interface: AssemblyFactory
Returns a new Module.

Specified by:
createModule in interface AssemblyFactory
Returns:
a new Module

createModuleFragment

public ModuleFragment createModuleFragment()
Description copied from interface: AssemblyFactory
Returns a new ModuleFragment.

Specified by:
createModuleFragment in interface AssemblyFactory
Returns:
a new ModuleFragment

createModuleComponent

public ModuleComponent createModuleComponent()
Description copied from interface: AssemblyFactory
Returns a new ModuleComponent.

Specified by:
createModuleComponent in interface AssemblyFactory
Returns:
a new ModuleComponent

createProperty

public Property createProperty()
Description copied from interface: AssemblyFactory
Returns a new Property.

Specified by:
createProperty in interface AssemblyFactory
Returns:
a new Property

createConfiguredProperty

public ConfiguredProperty createConfiguredProperty()
Description copied from interface: AssemblyFactory
Returns a new ConfiguredProperty.

Specified by:
createConfiguredProperty in interface AssemblyFactory
Returns:
a new ConfiguredProperty

createReference

public Reference createReference()
Description copied from interface: AssemblyFactory
Returns a new Reference.

Specified by:
createReference in interface AssemblyFactory
Returns:
a new Reference

createConfiguredReference

public ConfiguredReference createConfiguredReference()
Description copied from interface: AssemblyFactory
Returns a new ConfiguredReference.

Specified by:
createConfiguredReference in interface AssemblyFactory
Returns:
a new ConfiguredReference

createService

public Service createService()
Description copied from interface: AssemblyFactory
Returns a new Service.

Specified by:
createService in interface AssemblyFactory
Returns:
a new Service

createConfiguredService

public ConfiguredService createConfiguredService()
Description copied from interface: AssemblyFactory
Returns a new ConfiguredService.

Specified by:
createConfiguredService in interface AssemblyFactory
Returns:
a new ConfiguredService

createSubsystem

public Subsystem createSubsystem()
Description copied from interface: AssemblyFactory
Returns a new Subsystem.

Specified by:
createSubsystem in interface AssemblyFactory
Returns:
a new Subsystem

createWSDLServiceContract

public WSDLServiceContract createWSDLServiceContract()
Description copied from interface: AssemblyFactory
Returns a new WSDLServiceContract.

Specified by:
createWSDLServiceContract in interface AssemblyFactory
Returns:
a new WSDLServiceContract

createServiceURI

public ServiceURI createServiceURI(java.lang.String uri)
Description copied from interface: AssemblyFactory
Create a new ServiceURI from the given uri string.

Specified by:
createServiceURI in interface AssemblyFactory
Parameters:
uri - the URI for the service
Returns:
a new ServiceURI created from the supplied URI

createServiceURI

public ServiceURI createServiceURI(ModuleComponent moduleComponent,
                                   java.lang.String serviceName)
Description copied from interface: AssemblyFactory
Creates a new ServiceURI from a module component and a service name.

Specified by:
createServiceURI in interface AssemblyFactory
Parameters:
moduleComponent - the module component exposing the service
serviceName - the name of the service exposed by the module
Returns:
a new ServiceURI for the exposed service

createServiceURI

public ServiceURI createServiceURI(ModuleComponent moduleComponent,
                                   Part part,
                                   ConfiguredPort configuredPort)
Description copied from interface: AssemblyFactory
Creates a new ServiceURI from a module component and configured port.

Specified by:
createServiceURI in interface AssemblyFactory
Parameters:
moduleComponent - the module component exposing the service
part - the part that is providing the service
configuredPort - the port on the part
Returns:
a new serviceURI for the exposed service

createServiceURI

public ServiceURI createServiceURI(ModuleComponent moduleComponent,
                                   java.lang.String partName,
                                   java.lang.String serviceName)
Specified by:
createServiceURI in interface AssemblyFactory

createQName

public javax.xml.namespace.QName createQName(java.lang.String uri)
Description copied from interface: AssemblyFactory
Create a qname from a URI

Specified by:
createQName in interface AssemblyFactory
Returns:
a new qname

createWire

public Wire createWire()
Description copied from interface: AssemblyFactory
Create a wire

Specified by:
createWire in interface AssemblyFactory
Returns:
an new wire

createReference

public Reference createReference(java.lang.String name,
                                 java.lang.Class<?> service)
Description copied from interface: AssemblyFactory
Helper method for creating a reference.

Specified by:
createReference in interface AssemblyFactory
Parameters:
name - the name of the reference
service - the Java type of the service
Returns:
a Reference

createReference

public Reference createReference(java.lang.String name,
                                 java.lang.Class<?> service,
                                 Multiplicity multiplicity)
Description copied from interface: AssemblyFactory
Helper method for creating a reference.

Specified by:
createReference in interface AssemblyFactory
Parameters:
name - the name of the reference
service - the Java type of the service
multiplicity - the multiplicity of the reference
Returns:
a Reference

createConfiguredReference

public ConfiguredReference createConfiguredReference(java.lang.String name,
                                                     java.lang.String... targets)
Description copied from interface: AssemblyFactory
Helper method for creating a configured reference.

Specified by:
createConfiguredReference in interface AssemblyFactory
Parameters:
name - the name of the reference
targets - the targets for the reference
Returns:
a ConfiguredReference

createEntryPoint

public EntryPoint createEntryPoint(java.lang.String entryPointName,
                                   ServiceContract serviceContract,
                                   Binding binding,
                                   java.lang.String targetName)
Description copied from interface: AssemblyFactory
Helper method for creating an EntryPoint wired to a single target.

Specified by:
createEntryPoint in interface AssemblyFactory
Parameters:
entryPointName - the name of the entry point
serviceContract - the service contract the EntryPoint should expose
binding - the binding the EntryPoint should use
targetName - the target the EntryPoint exposes
Returns:
an EntryPoint that exposes the supplied service and is wired to the target

createEntryPoint

public EntryPoint createEntryPoint(java.lang.String entryPointName,
                                   ConfiguredService configuredService,
                                   Binding binding,
                                   ConfiguredReference configuredReference)
Description copied from interface: AssemblyFactory
Helper method for creating an EntryPoint wired to a single target.

Specified by:
createEntryPoint in interface AssemblyFactory
Parameters:
entryPointName - the name of the entry point
configuredService - the configured service to expose
binding - the binding the EntryPoint should use
configuredReference - a configured reference to the target
Returns:
an EntryPoint that exposes the supplied service using the supplied bindng and which is wired using the supplied reference

createProperty

public Property createProperty(java.lang.String name,
                               java.lang.Class<?> type)
Description copied from interface: AssemblyFactory
Helper method for creating a simple Property.

Specified by:
createProperty in interface AssemblyFactory
Parameters:
name - the property name
type - the Java type of the property
Returns:
a Property with the supplied name and type

createImportWSDL

public ImportWSDL createImportWSDL()
Description copied from interface: AssemblyFactory
Returns a new ImportWSDL model object.

Specified by:
createImportWSDL in interface AssemblyFactory
Returns:
a new ImportWSDL model object

createImportWSDL

public ImportWSDL createImportWSDL(java.lang.String location,
                                   java.lang.String namespace)
Description copied from interface: AssemblyFactory
Returns a new ImportWSDL model object initialized with the supplied values.

Specified by:
createImportWSDL in interface AssemblyFactory
Parameters:
location - the location where the WSDL definition can be found
namespace - the namespace URI for this import
Returns:
a new ImportWSDL model object

Tuscany Assembly Model

-