loomxfire.java
来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 44 行
JAVA
44 行
package org.codehaus.xfire.loom;import org.apache.avalon.framework.service.ServiceException;import org.apache.avalon.framework.service.ServiceManager;import org.apache.avalon.framework.service.Serviceable;import org.codehaus.xfire.DefaultXFire;import org.codehaus.xfire.service.ServiceRegistry;import org.codehaus.xfire.transport.TransportManager;/** * An instance of XFire that is managed by Loom / Phoenix. * * @author <a href="mailto:peter.royal@pobox.com">Peter Royal</a> */public class LoomXFire extends DefaultXFire implements Serviceable{ private ServiceRegistry m_serviceRegistry; private TransportManager m_transportManager; public LoomXFire() { super(null, null); // Use this to prevent component instantiation in the superclass default cxtor } public ServiceRegistry getServiceRegistry() { return m_serviceRegistry; } public TransportManager getTransportManager() { return m_transportManager; } public void service(final ServiceManager manager) throws ServiceException { m_serviceRegistry = (ServiceRegistry) manager.lookup(ServiceRegistry.ROLE); m_transportManager = (TransportManager) manager.lookup(TransportManager.ROLE); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?