2009/10/1 Krzysztof Białek <[email protected]>:
> Hi,
> I wrote three posts about Qi4j dedicated for absolute beginners.
> You can find them at http://javasnippet.blogspot.com/search/label/qi4j
> Feedback is kindly welcome.

I see one bug in the second post;


01.public class SimpleQi4jApplication {
02.
03.    public static void main(final String[] args) throws Exception {
04.        SingletonAssembler assembler = new SingletonAssembler() {
05.
06.            @Override
07.            public void assemble(ModuleAssembly module) throws
AssemblyException {
08.
09.            }
10.        };
11.
12.        ApplicationSPI application = assembler.application();
13.        application.activate();
14.
15.    }
16.}

The application.activate() is superflous. It happens in the
SingletonAssembler constructor. So,

01. public class SimpleQi4jApplication {
02.
03.    public static void main(final String[] args) throws Exception {
04.        SingletonAssembler assembler = new SingletonAssembler() {
05.
06.            @Override
07.            public void assemble(ModuleAssembly module) throws
AssemblyException {
08.            }
09.        };
10.    }
11.}

is enough.

I'm checking third post now...

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to