Tuscany Core

org.apache.tuscany.core.config.impl
Class AbstractModuleComponentConfigurationLoader

java.lang.Object
  extended by org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader
All Implemented Interfaces:
ModuleComponentConfigurationLoader
Direct Known Subclasses:
StAXModuleComponentConfigurationLoaderImpl

public abstract class AbstractModuleComponentConfigurationLoader
extends java.lang.Object
implements ModuleComponentConfigurationLoader

Version:
$Rev$ $Date$

Field Summary
protected  org.apache.tuscany.model.assembly.AssemblyFactory assemblyFactory
           
protected  org.apache.tuscany.model.assembly.AssemblyContext modelContext
           
protected  org.apache.tuscany.common.resource.ResourceLoader resourceLoader
           
 
Constructor Summary
protected AbstractModuleComponentConfigurationLoader(org.apache.tuscany.model.assembly.AssemblyContext modelContext)
           
 
Method Summary
protected  org.apache.tuscany.model.assembly.ComponentType getCompositeComponentType()
           
protected  ComponentTypeIntrospector getIntrospector()
           
protected  org.apache.tuscany.model.assembly.ComponentType getSystemCompositeComponentType()
           
abstract  org.apache.tuscany.model.assembly.Module loadModule(java.net.URL url)
           
 org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name, java.lang.String uri)
          Load a SCDL module component.
protected  org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String moduleFileName, java.lang.String fragmentFileName, java.lang.String name, java.lang.String uri)
           
 org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name, java.lang.String uri, java.net.URL url)
          Load a SCDL module component.
 org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name, java.lang.String uri, java.net.URL moduleUri, java.util.Collection<java.net.URL> moduleFragmentUris)
          Load a SCDL module component.
abstract  org.apache.tuscany.model.assembly.ModuleFragment loadModuleFragment(java.net.URL url)
           
 org.apache.tuscany.model.assembly.ModuleComponent loadSystemModuleComponent(java.lang.String name, java.lang.String uri)
          Load a System SCDL module component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelContext

protected final org.apache.tuscany.model.assembly.AssemblyContext modelContext

resourceLoader

protected final org.apache.tuscany.common.resource.ResourceLoader resourceLoader

assemblyFactory

protected final org.apache.tuscany.model.assembly.AssemblyFactory assemblyFactory
Constructor Detail

AbstractModuleComponentConfigurationLoader

protected AbstractModuleComponentConfigurationLoader(org.apache.tuscany.model.assembly.AssemblyContext modelContext)
Method Detail

getIntrospector

protected ComponentTypeIntrospector getIntrospector()

getSystemCompositeComponentType

protected org.apache.tuscany.model.assembly.ComponentType getSystemCompositeComponentType()
                                                                                   throws ConfigurationLoadException
Throws:
ConfigurationLoadException

getCompositeComponentType

protected org.apache.tuscany.model.assembly.ComponentType getCompositeComponentType()
                                                                             throws ConfigurationLoadException
Throws:
ConfigurationLoadException

loadSystemModuleComponent

public org.apache.tuscany.model.assembly.ModuleComponent loadSystemModuleComponent(java.lang.String name,
                                                                                   java.lang.String uri)
                                                                            throws ConfigurationLoadException
Description copied from interface: ModuleComponentConfigurationLoader
Load a System SCDL module component.

Specified by:
loadSystemModuleComponent in interface ModuleComponentConfigurationLoader
Parameters:
name - the name of the module component
Returns:
a new module component definition
Throws:
ConfigurationLoadException - if there was a problem loading the module component.

loadModuleComponent

public org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name,
                                                                             java.lang.String uri)
                                                                      throws ConfigurationLoadException
Description copied from interface: ModuleComponentConfigurationLoader
Load a SCDL module component.

Specified by:
loadModuleComponent in interface ModuleComponentConfigurationLoader
Parameters:
name - the name of the module component
Returns:
a new module component definition
Throws:
ConfigurationLoadException - if there was a problem loading the module component.

loadModuleComponent

protected org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String moduleFileName,
                                                                                java.lang.String fragmentFileName,
                                                                                java.lang.String name,
                                                                                java.lang.String uri)
                                                                         throws ConfigurationLoadException
Throws:
ConfigurationLoadException

loadModuleComponent

public org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name,
                                                                             java.lang.String uri,
                                                                             java.net.URL url)
                                                                      throws ConfigurationLoadException
Description copied from interface: ModuleComponentConfigurationLoader
Load a SCDL module component.

Specified by:
loadModuleComponent in interface ModuleComponentConfigurationLoader
Parameters:
name - the name of the module component
Returns:
a new module component definition
Throws:
ConfigurationLoadException - if there was a problem loading the module component.

loadModuleComponent

public org.apache.tuscany.model.assembly.ModuleComponent loadModuleComponent(java.lang.String name,
                                                                             java.lang.String uri,
                                                                             java.net.URL moduleUri,
                                                                             java.util.Collection<java.net.URL> moduleFragmentUris)
                                                                      throws ConfigurationLoadException
Description copied from interface: ModuleComponentConfigurationLoader
Load a SCDL module component.

Specified by:
loadModuleComponent in interface ModuleComponentConfigurationLoader
Parameters:
name - the name of the module component
Returns:
a new module component definition
Throws:
ConfigurationLoadException - if there was a problem loading the module component.

loadModule

public abstract org.apache.tuscany.model.assembly.Module loadModule(java.net.URL url)
                                                             throws ConfigurationLoadException
Throws:
ConfigurationLoadException

loadModuleFragment

public abstract org.apache.tuscany.model.assembly.ModuleFragment loadModuleFragment(java.net.URL url)
                                                                             throws ConfigurationLoadException
Throws:
ConfigurationLoadException

Tuscany Core

-