public void doStart() throws Exception {
String threadName = (String)this.name.getName().get("name");
this.threadFactoryName = kernel.getNaming().createRootName(name.getArtifact(), threadName, ManagedConstants.MANAGED_THREAD_FACTORY);
GBeanData threadFactoryData = new GBeanData(this.threadFactoryName, ManagedThreadFactoryGBean.getGBeanInfo());
threadFactoryData.setAttribute("contextHandlers", this.contextHandlerClasses);
threadFactoryData.setAttribute("groupName", this.groupName);
threadFactoryData.setAttribute("priority", this.threadPriority);
threadFactoryData.setAttribute("daemon", this.daemonThread);
threadFactoryData.setAttribute("hungTaskThreshold", this.hungTaskThreshold);
threadFactoryData.setAttribute("hungTaskMonitorFrequency", this.hungTaskMonitorFrequency);
addGBeanKernel(this.threadFactoryName, threadFactoryData);
this.threadFactoryGBean = (ManagedThreadFactoryGBean)kernel.getGBean(this.threadFactoryName);
this.threadFactoryGBean.verifyObjectName();
}
|