org.apache.tuscany.sca.node.impl
Class NodeFactoryImpl
java.lang.Object
org.apache.tuscany.sca.node.SCANodeFactory
org.apache.tuscany.sca.node.impl.NodeFactoryImpl
public class NodeFactoryImpl
- extends SCANodeFactory
Default implementation of an SCA node factory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeFactoryImpl
public NodeFactoryImpl()
createSCANodeFromClassLoader
public SCANode createSCANodeFromClassLoader(java.lang.String compositeURI,
java.lang.ClassLoader classLoader)
- Description copied from class:
SCANodeFactory
- Create a SCA node based on the discovery of the contribution on the classpath for the
given classloader. This method should be treated a convinient shortcut with the following
assumptions:
- This is a standalone application and there is a deployable composite file on the classpath.
- There is only one contribution which contains the deployable composite file physically in its packaging hierarchy.
- Specified by:
createSCANodeFromClassLoader
in class SCANodeFactory
- Parameters:
compositeURI
- The URI of the composite file relative to the root of the enclosing contributionclassLoader
- The ClassLoader used to load the composite file as a resource. If the value is null,
then thread context classloader will be used
- Returns:
- A newly created SCA node
createSCANodeFromURL
public SCANode createSCANodeFromURL(java.lang.String configurationURI)
- Description copied from class:
SCANodeFactory
- Creates a new SCA node from the configuration URL
- Specified by:
createSCANodeFromURL
in class SCANodeFactory
- Parameters:
configurationURI
- the URL of the node configuration which is the ATOM feed
that contains the URI of the composite and a collection of URLs for the contributions
- Returns:
- a new SCA node.
createSCANode
public SCANode createSCANode(java.lang.String compositeURI,
SCAContribution... contributions)
- Description copied from class:
SCANodeFactory
- Creates a new SCA node.
- Specified by:
createSCANode
in class SCANodeFactory
- Parameters:
compositeURI
- the URI of the composite to usecontributions
- the URI of the contributions that provides the composites and related
artifacts. If the list is empty, then we will use the thread context classloader to discover
the contribution on the classpath
- Returns:
- a new SCA node.
createSCANode
public SCANode createSCANode(java.lang.String compositeURI,
java.lang.String compositeContent,
SCAContribution... contributions)
- Description copied from class:
SCANodeFactory
- Creates a new SCA node.
- Specified by:
createSCANode
in class SCANodeFactory
- Parameters:
compositeURI
- the URI of the composite to usecompositeContent
- the XML content of the composite to usecontributions
- the URI of the contributions that provides the composites and related artifacts
- Returns:
- a new SCA node.