Tuscany Assembly Model

org.apache.tuscany.model.assembly
Interface AssemblyFactory

All Known Implementing Classes:
AssemblyFactoryImpl

public interface AssemblyFactory

The Factory for the assembly model. Provides a create method for each non-abstract class of the model.


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.
 

Method Detail

createSimpleComponent

AtomicComponent createSimpleComponent()
Returns a new SimpleComponent.

Returns:
a new SimpleComponent

createComponentType

ComponentType createComponentType()
Returns a new ComponentType.

Returns:
a new ComponentType

createEntryPoint

EntryPoint createEntryPoint()
Returns a new EntryPoint.

Returns:
a new EntryPoint

createExternalService

ExternalService createExternalService()
Returns a new ExternalService.

Returns:
a new ExternalService

createJavaServiceContract

JavaServiceContract createJavaServiceContract()
Returns a new JavaServiceContract.

Returns:
a new JavaServiceContract

createModule

Module createModule()
Returns a new Module.

Returns:
a new Module

createModuleComponent

ModuleComponent createModuleComponent()
Returns a new ModuleComponent.

Returns:
a new ModuleComponent

createModuleFragment

ModuleFragment createModuleFragment()
Returns a new ModuleFragment.

Returns:
a new ModuleFragment

createReference

Reference createReference()
Returns a new Reference.

Returns:
a new Reference

createConfiguredReference

ConfiguredReference createConfiguredReference()
Returns a new ConfiguredReference.

Returns:
a new ConfiguredReference

createService

Service createService()
Returns a new Service.

Returns:
a new Service

createConfiguredService

ConfiguredService createConfiguredService()
Returns a new ConfiguredService.

Returns:
a new ConfiguredService

createSubsystem

Subsystem createSubsystem()
Returns a new Subsystem.

Returns:
a new Subsystem

createProperty

Property createProperty()
Returns a new Property.

Returns:
a new Property

createConfiguredProperty

ConfiguredProperty createConfiguredProperty()
Returns a new ConfiguredProperty.

Returns:
a new ConfiguredProperty

createWSDLServiceContract

WSDLServiceContract createWSDLServiceContract()
Returns a new WSDLServiceContract.

Returns:
a new WSDLServiceContract

createServiceURI

ServiceURI createServiceURI(java.lang.String uri)
Create a new ServiceURI from the given uri string.

Parameters:
uri - the URI for the service
Returns:
a new ServiceURI created from the supplied URI

createServiceURI

ServiceURI createServiceURI(ModuleComponent moduleComponent,
                            java.lang.String serviceName)
Creates a new ServiceURI from a module component and a service name.

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

ServiceURI createServiceURI(ModuleComponent moduleComponent,
                            Part part,
                            ConfiguredPort configuredPort)
Creates a new ServiceURI from a module component and configured port.

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

ServiceURI createServiceURI(ModuleComponent moduleComponent,
                            java.lang.String partName,
                            java.lang.String serviceName)

createQName

javax.xml.namespace.QName createQName(java.lang.String uri)
Create a qname from a URI

Parameters:
uri -
Returns:
a new qname

createWire

Wire createWire()
Create a wire

Returns:
an new wire

createReference

Reference createReference(java.lang.String name,
                          java.lang.Class<?> service)
Helper method for creating a reference.

Parameters:
name - the name of the reference
service - the Java type of the service
Returns:
a Reference

createReference

Reference createReference(java.lang.String name,
                          java.lang.Class<?> service,
                          Multiplicity multiplicity)
Helper method for creating a reference.

Parameters:
name - the name of the reference
service - the Java type of the service
multiplicity - the multiplicity of the reference
Returns:
a Reference

createConfiguredReference

ConfiguredReference createConfiguredReference(java.lang.String name,
                                              java.lang.String... targets)
Helper method for creating a configured reference.

Parameters:
name - the name of the reference
targets - the targets for the reference
Returns:
a ConfiguredReference

createEntryPoint

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.

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

EntryPoint createEntryPoint(java.lang.String entryPointName,
                            ConfiguredService configuredService,
                            Binding binding,
                            ConfiguredReference configuredReference)
Helper method for creating an EntryPoint wired to a single target.

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

Property createProperty(java.lang.String name,
                        java.lang.Class<?> type)
Helper method for creating a simple Property.

Parameters:
name - the property name
type - the Java type of the property
Returns:
a Property with the supplied name and type

createImportWSDL

ImportWSDL createImportWSDL()
Returns a new ImportWSDL model object.

Returns:
a new ImportWSDL model object

createImportWSDL

ImportWSDL createImportWSDL(java.lang.String location,
                            java.lang.String namespace)
Returns a new ImportWSDL model object initialized with the supplied values.

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

-