KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > nuts > FactoryProcedure


1 package jfun.yan.xml.nuts;
2
3 import jfun.yan.factory.Factory;
4 import jfun.yan.lifecycle.Procedure;
5
6
7 final class FactoryProcedure implements Procedure {
8   public void invoke(Object JavaDoc self, Object JavaDoc[] args){
9     final Factory f = (Factory)self;
10     f.create();
11   }
12   private FactoryProcedure(){}
13   private static final Procedure singleton = new FactoryProcedure();
14   static Procedure instance(){
15     return singleton;
16   }
17 }
18
Popular Tags