# HG changeset patch # User Jaroslav Tulach # Date 1300605146 -3600 # Node ID c20d1d8ef2ca2ed2c5ca7c7f4308ee6238cb8d11 # Parent 1a84ff19120a64fab9bc83251fef6a60ea119406 Show composition of client and provider APIs diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/build.xml Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project openfixed. + + + diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/nbproject/build-impl.xml Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,1041 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + Must select one file in the IDE or set profile.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/nbproject/genfiles.properties Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=33b4766a +build.xml.script.CRC32=5b02ecff +build.xml.stylesheet.CRC32=28e38971@1.43.0.45 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=33b4766a +nbproject/build-impl.xml.script.CRC32=05841ecd +nbproject/build-impl.xml.stylesheet.CRC32=0c01fd8e@1.43.0.45 diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/nbproject/project.properties Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,69 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/openfixed.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.6 +javac.target=1.6 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/nbproject/project.xml Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + openfixed + + + + + + + + + diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/src/org/apidesign/openfixed/Growable.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/src/org/apidesign/openfixed/Growable.java Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,19 @@ +package org.apidesign.openfixed; + +import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; + +/** Sample bean using the {@link GrowingListener}. + * + * @author Jaroslav Tulach + */ +public final class Growable { + private List listeners = new CopyOnWriteArrayList(); + + public void addGrowingListener(GrowingListener l) { + listeners.add(l); + } + public void removeGrowingListener(GrowingListener l) { + listeners.remove(l); + } +} diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/src/org/apidesign/openfixed/GrowingEvent.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/src/org/apidesign/openfixed/GrowingEvent.java Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,25 @@ +package org.apidesign.openfixed; + +import java.util.EventObject; + +// BEGIN: openfixed.event +public final class GrowingEvent extends EventObject { + public GrowingEvent(Object source) { + super(source); + } +// FINISH: openfixed.event + +// BEGIN: openfixed.addgetter + private int index; + /** @since 2.0 */ + public GrowingEvent(Object source, int index) { + super(source); + this.index = index; + } + + /** @since 2.0 */ + public int getIndex() { + return index; + } +// END: openfixed.addgetter +} diff -r 1a84ff19120a -r c20d1d8ef2ca samples/openfixed/src/org/apidesign/openfixed/GrowingListener.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/openfixed/src/org/apidesign/openfixed/GrowingListener.java Sun Mar 20 08:12:26 2011 +0100 @@ -0,0 +1,9 @@ +package org.apidesign.openfixed; + +import java.util.EventListener; + +// BEGIN: openfixed.listener +public interface GrowingListener extends EventListener { + public void response(GrowingEvent ev); +} +// FINISH: openfixed.listener