1 25 26 package org.objectweb.jonas_lib.genclientstub.generator; 27 28 import org.objectweb.jonas_lib.genbase.generator.Config; 29 30 35 public class GeneratorFactory implements org.objectweb.jonas_lib.genbase.generator.GeneratorFactory { 36 37 38 private static GeneratorFactory instance = null; 39 40 41 private Config configuration; 42 43 46 private GeneratorFactory() { 47 48 } 49 50 54 public static GeneratorFactory getInstance() { 55 if (instance == null) { 56 instance = newInstance(); 57 } 58 59 return instance; 60 } 61 62 67 private static GeneratorFactory newInstance() { 68 return new GeneratorFactory(); 69 } 70 71 75 public void setConfiguration(Config config) { 76 this.configuration = config; 77 } 78 79 83 public Config getConfiguration() { 84 return configuration; 85 } 86 } | Popular Tags |