You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by si...@avalon.apache.org on 2004/02/29 01:10:36 UTC
[Apache Avalon Wiki] Updated: SimpleComponentExample
Date: 2004-02-28T16:10:32
Editor: AaronFarr <fa...@apache.org>
Wiki: Apache Avalon Wiki
Page: SimpleComponentExample
URL: http://wiki.apache.org/avalon/SimpleComponentExample
this will be nice once finished. give me tonight -farra
Change Log:
------------------------------------------------------------------------------
@@ -1,11 +1,43 @@
= Writing a Simple Avalon Component =
+In this example we'll look at a very simple Avalon component.
+
== The Service Interface ==
+{{{
+package org.apache.avalon.examples.simple;
+
+public interface Simple {
+
+ public String getName();
+
+}
+}}}
+
== A Simple Implementation ==
+{{{
+package org.apache.avalon.examples.simple.impl;
+
+import org.apache.avalon.examples.simple.Simple;
+
+public class SimpleHelloImpl implements Simple
+{
+
+ public String getName()
+ {
+ return "Hello World!";
+ }
+
+}
+}}}
+
== Adding Lifecycles ==
-== Next Step ==
+== Adding A Dependency ==
+
+== Adding Meta-Data ==
+
+== Adding Configuration ==
-''Adding container specific information (Configuration, meta-data, deployment)'''
+== Container Deployment ==
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org