1 24 25 package org.objectweb.dream.control.logger; 26 27 import org.objectweb.fractal.api.Component; 28 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 29 import org.objectweb.fractal.julia.Util; 30 31 52 public abstract class LoggerLifeCycleMixin 53 { 54 55 59 66 public void startFc() throws IllegalLifeCycleException 67 { 68 StringBuffer path = new StringBuffer (); 69 Util.toString(_this_weaveableC, path); 70 String s = path.toString().substring(1).replace('/', '.'); 71 if (_this_weaveableOptLogC instanceof LoggerInternalBaseName) 72 { 73 ((LoggerInternalBaseName) _this_weaveableOptLogC).internalSetBaseName(s); 74 } 75 else 76 { 77 _this_weaveableOptLogC.setBaseName(s); 78 } 79 _super_startFc(); 80 } 81 82 86 91 public Component _this_weaveableC; 92 93 98 public LoggerController _this_weaveableOptLogC; 99 100 106 public abstract void _super_startFc() throws IllegalLifeCycleException; 107 108 } | Popular Tags |