org.apache.tuscany.samples.sdo
Class ExecuteSamples
java.lang.Object
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
org.apache.tuscany.samples.sdo.SampleBase
org.apache.tuscany.samples.sdo.ExecuteSamples
public class ExecuteSamples
- extends SampleBase
A program to execute a sequence of SDO sample programs. The program executes
the sample programs listed in the sample classes
static constant. These samples are executed in roughly increasing order of complexity.
You can edit the pauseBetweenSamples
, runSamplesUpToLevel
and
constructorArgs
variables to change the way this program executes the samples.
Each of the samples creates text output to the console. If the commentary
level in the sample program constructor arguments
used to construct each sample is set to
COMMENTARY_FOR_NOVICE
then there
will be much more output than if set to one of the other values.
Nested classes/interfaces inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure.SDOFacets |
Fields inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
COMMENTARY_ALWAYS, COMMENTARY_FOR_ADVANCED, COMMENTARY_FOR_INTERMEDIATE, COMMENTARY_FOR_NOVICE, commentaryLevel, COMPANY_DATAGRAPH_XML, COMPANY_DATAOBJECT_XML, COMPANY_NAMESPACE, COMPANY_XSD, PO_NAMESPACE, PO_XML_GENERATED, PO_XML_RESOURCE, PO_XSD_RESOURCE, SAMPLE_LEVEL_ADVANCED, SAMPLE_LEVEL_BASIC, SAMPLE_LEVEL_INTERMEDIATE, sampleClasses, sampleComplexityLevel, userLevels |
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
runSample()
|
Methods inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
banner, banner, commentary, commentary, commentary, commentary, getSampleComplexityLevel, run, setSampleComplexityLevel, somethingUnexpectedHasHappened, yesOrNoFromUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecuteSamples
public ExecuteSamples(java.lang.Integer userLevel)
main
public static void main(java.lang.String[] args)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.io.IOException
- Throws:
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.io.IOException
runSample
public void runSample()
throws java.lang.Exception
- Specified by:
runSample
in class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
- Throws:
java.lang.Exception
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.