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 51 public abstract class LoggerLifeCycleCoordinatorMixin 52 { 53 54 58 65 public boolean setFcStarted() throws IllegalLifeCycleException 66 { 67 StringBuffer path = new StringBuffer (); 68 Util.toString(_this_weaveableC, path); 69 String s = path.toString().substring(1).replace('/', '.'); 70 if (_this_weaveableOptLogC instanceof LoggerInternalBaseName) 71 { 72 ((LoggerInternalBaseName) _this_weaveableOptLogC).internalSetBaseName(s); 73 } 74 else 75 { 76 _this_weaveableOptLogC.setBaseName(s); 77 } 78 return _super_setFcStarted(); 79 } 80 81 85 90 public Component _this_weaveableC; 91 92 97 public LoggerController _this_weaveableOptLogC; 98 99 106 public abstract boolean _super_setFcStarted() 107 throws IllegalLifeCycleException; 108 109 } | Popular Tags |