Tuscany Core

org.apache.tuscany.core.system.assembly.impl
Class SystemAssemblyFactoryImpl

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyFactoryImpl
      extended by org.apache.tuscany.core.system.assembly.impl.SystemAssemblyFactoryImpl
All Implemented Interfaces:
SystemAssemblyFactory, AssemblyFactory

public class SystemAssemblyFactoryImpl
extends AssemblyFactoryImpl
implements SystemAssemblyFactory

The default implementation of the system assembly factory

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $

Constructor Summary
SystemAssemblyFactoryImpl()
           
 
Method Summary
 SystemBinding createSystemBinding()
          Returns an assembly model artifact representing a system binding
<T> Component
createSystemComponent(String name, Class<T> service, Class<? extends T> impl, Scope scope)
          Helper method for creating a typical system component.
 EntryPoint createSystemEntryPoint(String entryPointName, Class<?> serviceContract, String targetName)
          Helper method for creating a system entry point wired to a component.
 SystemImplementation createSystemImplementation()
          Returns an assembly model artifact representing a system component implementation
 SystemModule createSystemModule()
          Returns an assembly model artifact representing a system module
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyFactoryImpl
createComponentType, createConfiguredProperty, createConfiguredReference, createConfiguredReference, createConfiguredService, createEntryPoint, createEntryPoint, createEntryPoint, createExternalService, createImportWSDL, createImportWSDL, createJavaServiceContract, createModule, createModuleComponent, createModuleFragment, createProperty, createProperty, createQName, createReference, createReference, createReference, createService, createServiceURI, createServiceURI, createServiceURI, createServiceURI, createSimpleComponent, createSubsystem, createWire, createWSDLServiceContract
 
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.AssemblyFactory
createComponentType, createConfiguredProperty, createConfiguredReference, createConfiguredReference, createConfiguredService, createEntryPoint, createEntryPoint, createEntryPoint, createExternalService, createImportWSDL, createImportWSDL, createJavaServiceContract, createModule, createModuleComponent, createModuleFragment, createProperty, createProperty, createQName, createReference, createReference, createReference, createService, createServiceURI, createServiceURI, createServiceURI, createServiceURI, createSimpleComponent, createSubsystem, createWire, createWSDLServiceContract
 

Constructor Detail

SystemAssemblyFactoryImpl

public SystemAssemblyFactoryImpl()
Method Detail

createSystemImplementation

public SystemImplementation createSystemImplementation()
Description copied from interface: SystemAssemblyFactory
Returns an assembly model artifact representing a system component implementation

Specified by:
createSystemImplementation in interface SystemAssemblyFactory

createSystemBinding

public SystemBinding createSystemBinding()
Description copied from interface: SystemAssemblyFactory
Returns an assembly model artifact representing a system binding

Specified by:
createSystemBinding in interface SystemAssemblyFactory

createSystemComponent

public <T> Component createSystemComponent(String name,
                                           Class<T> service,
                                           Class<? extends T> impl,
                                           Scope scope)
Description copied from interface: SystemAssemblyFactory
Helper method for creating a typical system component.

Specified by:
createSystemComponent in interface SystemAssemblyFactory
Parameters:
name - the name of the component
service - the service that the component provides
impl - the component implementation
scope - the component's scope
Returns:
a Component model object with the appropriate system implementation

createSystemEntryPoint

public EntryPoint createSystemEntryPoint(String entryPointName,
                                         Class<?> serviceContract,
                                         String targetName)
Description copied from interface: SystemAssemblyFactory
Helper method for creating a system entry point wired to a component.

Specified by:
createSystemEntryPoint in interface SystemAssemblyFactory
Parameters:
entryPointName - the name of the entry point
serviceContract - the service contract exposed
targetName - the component to wire the entry point to
Returns:
a EntryPoint model object that exposes the service contract and is wired to the named component

createSystemModule

public SystemModule createSystemModule()
Description copied from interface: SystemAssemblyFactory
Returns an assembly model artifact representing a system module

Specified by:
createSystemModule in interface SystemAssemblyFactory

Tuscany Core

-