|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.node.SCANodeFactory
public abstract class SCANodeFactory
A factory for SCA processing nodes. An SCA processing node can be loaded with an SCA composite and the SCA contributions required by the composite.
Nested Class Summary | |
---|---|
static class |
SCANodeFactory.NodeProxy
|
Constructor Summary | |
---|---|
SCANodeFactory()
|
Method Summary | |
---|---|
abstract SCANode |
createSCANode(java.lang.String compositeURI,
SCAContribution... contributions)
Creates a new SCA node. |
abstract SCANode |
createSCANode(java.lang.String compositeURI,
java.lang.String compositeContent,
SCAContribution... contributions)
Creates a new SCA node. |
abstract SCANode |
createSCANodeFromClassLoader(java.lang.String compositeURI,
java.lang.ClassLoader classLoader)
Create a SCA node based on the discovery of the contribution on the classpath for the given classloader. |
abstract SCANode |
createSCANodeFromURL(java.lang.String configurationURL)
Creates a new SCA node from the configuration URL |
static SCANodeFactory |
newInstance()
Returns a new SCA node factory instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCANodeFactory()
Method Detail |
---|
public static SCANodeFactory newInstance()
public abstract SCANode createSCANodeFromClassLoader(java.lang.String compositeURI, java.lang.ClassLoader classLoader)
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
public abstract SCANode createSCANodeFromURL(java.lang.String configurationURL)
configurationURL
- 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
public abstract SCANode createSCANode(java.lang.String compositeURI, SCAContribution... contributions)
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
public abstract SCANode createSCANode(java.lang.String compositeURI, java.lang.String compositeContent, SCAContribution... contributions)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |