1 17 package org.apache.servicemix.eip; 18 19 import org.apache.servicemix.common.BaseComponent; 20 import org.apache.servicemix.common.BaseLifeCycle; 21 22 26 public class EIPLifeCycle extends BaseLifeCycle { 27 28 protected EIPConfiguration configuration; 29 30 public EIPLifeCycle(BaseComponent component) { 31 super(component); 32 configuration = new EIPConfiguration(); 33 } 34 35 38 public EIPConfiguration getConfiguration() { 39 return configuration; 40 } 41 42 45 public void setConfiguration(EIPConfiguration configuration) { 46 this.configuration = configuration; 47 } 48 49 52 protected Object getExtensionMBean() throws Exception { 53 return configuration; 54 } 55 56 protected void doInit() throws Exception { 57 super.doInit(); 58 configuration.setRootDir(context.getWorkspaceRoot()); 59 configuration.load(); 60 } 61 62 } 63 | Popular Tags |