1 package org.objectweb.fractal.julia.factory; 2 3 import org.objectweb.fractal.api.Component; 4 import org.objectweb.fractal.api.factory.InstantiationException; 5 6 17 18 public abstract class SingletonTemplateMixin implements Template { 19 20 24 private SingletonTemplateMixin () { 25 } 26 27 31 34 35 public Component fcInstance; 36 37 45 46 public Component newFcControllerInstance () throws InstantiationException { 47 if (fcInstance == null) { 48 fcInstance = _super_newFcControllerInstance(); 49 } 50 return fcInstance; 51 } 52 53 57 65 66 public abstract Component _super_newFcControllerInstance () 67 throws InstantiationException ; 68 } 69 | Popular Tags |