亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? servicebean.java

?? Xfire文件 用于開發(fā)web service 的一個開源工具 很好用的
?? JAVA
字號:
package org.codehaus.xfire.spring;import java.net.URL;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.codehaus.xfire.XFire;import org.codehaus.xfire.XFireRuntimeException;import org.codehaus.xfire.aegis.AegisBindingProvider;import org.codehaus.xfire.service.Service;import org.codehaus.xfire.service.ServiceFactory;import org.codehaus.xfire.service.binding.ObjectServiceFactory;import org.codehaus.xfire.service.invoker.BeanInvoker;import org.codehaus.xfire.service.invoker.Invoker;import org.codehaus.xfire.service.invoker.ObjectInvoker;import org.codehaus.xfire.spring.config.AbstractSoapBindingBean;import org.codehaus.xfire.spring.config.EndpointBean;import org.codehaus.xfire.spring.config.Soap11BindingBean;import org.codehaus.xfire.spring.config.Soap12BindingBean;import org.codehaus.xfire.spring.config.SpringServiceConfiguration;import org.codehaus.xfire.util.Resolver;import org.springframework.beans.BeansException;import org.springframework.beans.factory.InitializingBean;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;/** * A convenience bean which creates a Service from a ServiceFactory instance. If there is no * ServiceFactory set, ServiceBean will create one from the ObjectServiceFactory. * <p> * Alternatively, the <code>Jsr181BeanPostProcessor</code> or the  * <code>XFireExporter</code>may be used. *  * @see org.codehaus.xfire.service.Service * @see org.codehaus.xfire.spring.Jsr181BeanPostProcessor * @see org.codehaus.xfire.service.binding.ObjectServiceFactory * @see org.codehaus.xfire.spring.remoting.XFireExporter *  * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse </a> * @author <a href="mailto:poutsma@mac.com">Arjen Poutsma</a> * @author <a href="mailto:tsztelak@gmail.com">Tomasz Sztelak</a> *  * @org.apache.xbean.XBean element="service" */public class ServiceBean    implements InitializingBean, ApplicationContextAware{    private final static Log logger = LogFactory.getLog(ServiceBean.class);    private Service xfireService;    private ServiceFactory serviceFactory;    protected XFire xFire;    private String name;    private String namespace;    private Class serviceInterface;    private Object service;    private List bindings;    private List inHandlers;    private List outHandlers;    private List faultHandlers;    private List schemas;        protected Class implementationClass;    private Map properties = new HashMap();    private String wsdlURL;        private List operations;        /** Some properties to make it easier to work with ObjectServiceFactory */    protected boolean createDefaultBindings = true;    protected String use;    protected String style;    private String scope;        private Invoker invoker;        private Object executor;    public void afterPropertiesSet()        throws Exception    {        // Use specific name if given, else fall back to bean name.//        String theName = (this.name != null ? this.name : this.beanName);//        if (theName != null && theName.startsWith("/"))//        {//            theName = theName.substring(1);//        }//                if (serviceFactory == null)        {            serviceFactory = new ObjectServiceFactory(xFire.getTransportManager(),                                                      new AegisBindingProvider());        }        ObjectServiceFactory osf = (ObjectServiceFactory) serviceFactory;        SpringServiceConfiguration springConfig = new SpringServiceConfiguration();        springConfig.setMethods(operations);        osf.getServiceConfigurations().add(0, springConfig);        /**         * Use the ServiceInterface if that is set, otherwise use the Class of          * the service object.         */        Class intf = getServiceClass();        if (intf == null)        {            if (getServiceBean() == null)                throw new RuntimeException("Error creating service " + name +                        ". The service class or the service bean must be set!");                        intf = SpringUtils.getUserTarget(getServiceBean()).getClass();        }                // Lets set up some properties for the service        if (createDefaultBindings)            	properties.put(ObjectServiceFactory.CREATE_DEFAULT_BINDINGS, Boolean.TRUE);        else        		properties.put(ObjectServiceFactory.CREATE_DEFAULT_BINDINGS, Boolean.FALSE);                if (style != null)            properties.put(ObjectServiceFactory.STYLE, style);        if (use != null)            properties.put(ObjectServiceFactory.USE, use);        if (scope != null)            properties.put(ObjectServiceFactory.SCOPE, scope);                if (implementationClass != null)        {            properties.put(ObjectInvoker.SERVICE_IMPL_CLASS, implementationClass);        }        if (schemas != null)        {            properties.put(ObjectServiceFactory.SCHEMAS, schemas);        }                if (wsdlURL != null)        {            String home = (String) getXfire().getProperty(XFire.XFIRE_HOME);                        Resolver resolver = new Resolver(home, wsdlURL);                        URL url = resolver.getURL();            if (url == null)            {                throw new XFireRuntimeException("Could not resolve WSDL URL " + wsdlURL);            }                        xfireService = serviceFactory.create(intf, null, url, properties);        }        else        {            xfireService = serviceFactory.create(intf, name, namespace, properties);        }        xfireService.setExecutor(executor);                // dirty hack to remove our ServiceConfiguration        osf.getServiceConfigurations().remove(springConfig);                if (bindings != null && serviceFactory instanceof ObjectServiceFactory)        {            initializeBindings();        }                if (logger.isInfoEnabled())        {            logger.info("Exposing service with name " + xfireService.getName());        }        if (invoker != null)        {            xfireService.setInvoker(invoker);        }        else        {            // If we're referencing a spring bean, set up our invoker.            Object serviceBean = getProxyForService();            if (serviceBean != null)            {                xfireService.setInvoker(new BeanInvoker(serviceBean));            }        }                // set up in handlers        if (xfireService.getInHandlers() == null)            xfireService.setInHandlers(getInHandlers());        else if (getInHandlers() != null)            xfireService.getInHandlers().addAll(getInHandlers());        // set up out handlers        if (xfireService.getOutHandlers() == null)            xfireService.setOutHandlers(getOutHandlers());        else if (getOutHandlers() != null)            xfireService.getOutHandlers().addAll(getOutHandlers());        // set up fault handlers.        if (xfireService.getFaultHandlers() == null)            xfireService.setFaultHandlers(getFaultHandlers());        else if (getFaultHandlers() != null)            xfireService.getFaultHandlers().addAll(getFaultHandlers());                // Register the service        xFire.getServiceRegistry().register(xfireService);    }    protected void initializeBindings()        throws Exception    {        ObjectServiceFactory osf = (ObjectServiceFactory) serviceFactory;        for (Iterator itr = bindings.iterator(); itr.hasNext();)        {            AbstractSoapBindingBean o = (AbstractSoapBindingBean) itr.next();            org.codehaus.xfire.soap.AbstractSoapBinding binding = null;            if (o instanceof Soap11BindingBean)            {                binding = osf.createSoap11Binding(xfireService, o.getName(), o.getTransport());            }            else if (o instanceof Soap12BindingBean)            {                binding = osf.createSoap12Binding(xfireService, o.getName(), o.getTransport());            }                        binding.setUndefinedEndpointAllowed(o.isAllowUndefinedEndpoints());            if (o.getEndpoints() == null) continue;                        for (Iterator eitr = o.getEndpoints().iterator(); eitr.hasNext();)            {                EndpointBean ep = (EndpointBean) eitr.next();                                osf.createEndpoint(xfireService, ep.getName(), ep.getUrl(), binding);            }        }    }    /**     * @return     */    protected Object getProxyForService()    {        return getServiceBean();    }    /**     * Gets the XFire Service created by this bean.     * @return     * @see Service     */    public Service getXFireService()    {        return xfireService;    }    /**     * Gets the object which backs this service.     * @return     */    public Object getServiceBean()    {        return service;    }    /**     * Sets the object which backs this service.     * @return     */    public void setServiceBean(Object service)    {        this.service = service;    }    /**     * Set the service class. The service class is passed to the ServiceFactory's     * create method and is used to determine the operations on the service.     * @return     */    public Class getServiceClass()    {        return serviceInterface;    }    public void setServiceClass(Class serviceInterface)    {        this.serviceInterface = serviceInterface;    }    public void setServiceFactory(ServiceFactory serviceFactory)    {        this.serviceFactory = serviceFactory;    }    public ServiceFactory getServiceFactory()    {        return this.serviceFactory;    }    /**     * Sets the service name. Default is the bean name of this exporter.     */    public void setName(String name)    {        this.name = name.trim();    }    /**     * Sets the service default namespace. Default is a namespace based on the     * package of the {@link #getServiceClass() service interface}.     */    public void setNamespace(String namespace)    {        this.namespace = namespace.trim();    }    public List getFaultHandlers()    {        return faultHandlers;    }    public void setFaultHandlers(List faultHandlers)    {        this.faultHandlers = faultHandlers;    }    public List getInHandlers()    {        return inHandlers;    }    public void setInHandlers(List inHandlers)    {        this.inHandlers = inHandlers;    }    public List getOutHandlers()    {        return outHandlers;    }    public void setOutHandlers(List outHandlers)    {        this.outHandlers = outHandlers;    }    public void setXfire(XFire xFire)    {        this.xFire = xFire;    }    public XFire getXfire()    {        return xFire;    }    public Class getImplementationClass()    {        return implementationClass;    }    public void setImplementationClass(Class implementationClass)    {        this.implementationClass = implementationClass;    }        /**     * @org.xbean.Map entryName="property" keyName="key"     * @return     */    public Map getProperties()    {        return properties;    }    public void setProperties(Map properties)    {        this.properties = properties;    }    public String getScope()    {        return scope;    }    public void setScope(String scope)    {        this.scope = scope;    }    public String getStyle()    {        return style;    }    public void setStyle(String style)    {        this.style = style;    }    public String getUse()    {        return use;    }    public void setUse(String use)    {        this.use = use;    }    public List getSchemas()    {        return schemas;    }    public void setSchemas(List schemas)    {        this.schemas = schemas;    }        /*     * (non-Javadoc)     *      * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)     */    public void setApplicationContext(ApplicationContext ctx)        throws BeansException    {        if (xFire == null) xFire = (XFire) ctx.getBean("xfire");        if (serviceFactory == null) serviceFactory = (ServiceFactory) ctx.getBean("xfire.serviceFactory");    }    public List getBindings()    {        return bindings;    }    public void setBindings(List bindings)    {        this.bindings = bindings;    }    public Invoker getInvoker()    {        return invoker;    }    public void setInvoker(Invoker invoker)    {        this.invoker = invoker;    }    public boolean isCreateDefaultBindings()    {        return createDefaultBindings;    }    public Object getExecutor()    {        return executor;    }    public void setExecutor(Object executor)    {        this.executor = executor;    }    public void setCreateDefaultBindings(boolean createDefaultBindings)    {        this.createDefaultBindings = createDefaultBindings;    }    public String getWsdlURL()    {        return wsdlURL;    }    public void setWsdlURL(String wsdlURL)    {        this.wsdlURL = wsdlURL;    }    /**     * @org.apache.xbean.FlatCollection childElement="method"     * @return     */    public List getMethods()    {        return operations;    }    public void setMethods(List operations)    {        this.operations = operations;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一卡二卡| 91在线观看高清| www.久久久久久久久| 欧美高清视频在线高清观看mv色露露十八| 久久亚洲捆绑美女| 亚瑟在线精品视频| www.欧美.com| 国产欧美一区二区精品性色超碰| 亚洲成人高清在线| 91啪在线观看| 欧美高清在线一区| 精品一区二区三区免费观看| 欧美日韩精品高清| 亚洲精品免费在线播放| 国产成人免费高清| wwww国产精品欧美| 琪琪久久久久日韩精品| 欧美在线看片a免费观看| 久久精品欧美日韩| 老司机精品视频一区二区三区| 一本久道久久综合中文字幕| 日本一区二区电影| 国产成人在线视频播放| 久久一区二区三区四区| 蜜臀久久久久久久| 欧美一区二区三区精品| 日韩在线一二三区| 精品视频免费在线| 亚洲成人精品影院| 欧美三级资源在线| 亚洲国产精品综合小说图片区| 色成人在线视频| 亚洲自拍偷拍麻豆| 欧美视频完全免费看| 亚洲一二三四在线观看| 欧美日韩免费视频| 首页国产丝袜综合| 欧美大黄免费观看| 久久99热99| 久久久久99精品国产片| 国产v综合v亚洲欧| 亚洲人成精品久久久久| 91蜜桃传媒精品久久久一区二区| 亚洲欧美另类久久久精品2019| 色94色欧美sute亚洲线路一久| 亚洲激情男女视频| 欧美日韩国产大片| 精品影视av免费| 亚洲国产精品精华液ab| 91女厕偷拍女厕偷拍高清| 亚洲欧美另类久久久精品2019| 欧美在线播放高清精品| 免费观看30秒视频久久| 久久精品一区蜜桃臀影院| 波多野结衣精品在线| 亚洲一区二区综合| 精品久久久久一区二区国产| 国产成人无遮挡在线视频| 中文字幕一区二区三区蜜月| 欧美日韩国产色站一区二区三区| 全国精品久久少妇| 中文字幕在线观看不卡| 欧美日韩在线播放一区| 久久不见久久见免费视频7| 中文字幕成人在线观看| 欧美综合久久久| 国内精品伊人久久久久av影院 | 亚洲激情一二三区| 91精品福利在线一区二区三区| 国产乱码一区二区三区| 一区二区免费视频| 久久久久久久久久看片| 一本到不卡精品视频在线观看| 免费欧美在线视频| 亚洲女厕所小便bbb| 精品福利一区二区三区免费视频| 日本韩国欧美一区| 国产99久久久久久免费看农村| 午夜精品影院在线观看| 国产喷白浆一区二区三区| 欧美日韩激情一区二区三区| 国产成人在线色| 奇米在线7777在线精品| 亚洲男人天堂一区| 欧美国产成人在线| 欧美电影免费观看高清完整版在 | 亚洲乱码中文字幕| 欧美精品一区男女天堂| 欧美性淫爽ww久久久久无| 国产宾馆实践打屁股91| 免费视频最近日韩| 亚洲电影一区二区| 中文字幕亚洲成人| 国产人久久人人人人爽| 日韩精品一区二区在线| 欧美日韩一区二区三区免费看| 国产成人av影院| 久久99精品久久只有精品| 亚洲成人激情av| 一区二区三区日韩| 日韩理论片在线| 中文字幕在线一区免费| 国产欧美va欧美不卡在线| 欧美成人高清电影在线| 欧美日韩亚洲综合在线| 色综合久久久网| 不卡的av电影在线观看| 丁香婷婷深情五月亚洲| 国产sm精品调教视频网站| 国产精品一卡二卡| 激情av综合网| 国产精品自拍在线| 国产一本一道久久香蕉| 激情伊人五月天久久综合| 国产在线精品免费av| 久久国产精品72免费观看| 美女国产一区二区| 国产一区二区三区电影在线观看| 裸体一区二区三区| 久久69国产一区二区蜜臀| 国模少妇一区二区三区| 国产一区久久久| 国产成人啪免费观看软件| 国产成人精品免费| 99re6这里只有精品视频在线观看| 成人h版在线观看| 色猫猫国产区一区二在线视频| 色婷婷国产精品| 欧美精选一区二区| 欧美一二三四区在线| 2023国产精品| 国产精品国产成人国产三级| 亚洲色图在线看| 视频一区二区三区中文字幕| 麻豆一区二区三| 国产ts人妖一区二区| 91污在线观看| 337p亚洲精品色噜噜噜| 欧美成人一区二区三区片免费| 国产亚洲成av人在线观看导航| 中文字幕 久热精品 视频在线| 亚洲欧洲精品一区二区三区不卡| 亚洲三级在线观看| 丝袜诱惑制服诱惑色一区在线观看| 亚洲国产成人av网| 韩国精品一区二区| 91免费小视频| 欧美一区二区黄| 日本一区二区久久| 亚洲第一搞黄网站| 国产成人亚洲精品狼色在线| 欧美性猛交一区二区三区精品| 日韩欧美久久久| 亚洲欧美激情小说另类| 精品一区二区日韩| 99re这里只有精品视频首页| 7777精品伊人久久久大香线蕉最新版| 久久午夜羞羞影院免费观看| 一区二区三区四区高清精品免费观看| 久久99精品视频| 在线看不卡av| 久久久久久夜精品精品免费| 亚洲亚洲人成综合网络| 国产一区二区精品久久| 欧美写真视频网站| 国产精品少妇自拍| 男女性色大片免费观看一区二区| 99久久99久久精品免费看蜜桃| 欧美r级电影在线观看| 亚洲精品久久7777| 丁香天五香天堂综合| 91精品欧美综合在线观看最新| 中文字幕一区视频| 国内不卡的二区三区中文字幕 | 日韩福利视频导航| 色综合网站在线| 国产午夜一区二区三区| 天堂蜜桃91精品| 色哟哟一区二区在线观看| 91免费国产视频网站| 午夜精品久久久久久久| 日韩黄色片在线观看| 99久免费精品视频在线观看| 亚洲欧洲性图库| 91九色最新地址| 日精品一区二区三区| 日韩欧美第一区| 国产一区二区免费视频| 欧美国产精品v| 色美美综合视频| 日本成人中文字幕在线视频| 欧美mv和日韩mv国产网站| 国产乱一区二区| 亚洲欧美日韩小说| 欧美一区二区三区公司| 国产毛片精品国产一区二区三区| 国产精品电影一区二区| 欧美片网站yy| 国产精品99久久久久久久vr| 亚洲精品亚洲人成人网 |