Exemple #1
0
            public void AfterPropertiesSet(IBeanContextFactory beanContextFactory)
            {
                beanContextFactory.registerBean <ExtendableBean>("testExtensionPoint")
                .propertyValue(ExtendableBean.P_EXTENDABLE_TYPE, typeof(ITestListenerExtendable))
                .propertyValue(ExtendableBean.P_PROVIDER_TYPE, typeof(ITestListenerRegistry));

                beanContextFactory.registerBean <ExtendableBean>("testExtensionPoint2")
                .propertyValue(ExtendableBean.P_EXTENDABLE_TYPE, typeof(ITestListenerExtendable2))
                .propertyValue(ExtendableBean.P_PROVIDER_TYPE, typeof(ITestListenerRegistry2));
            }
Exemple #2
0
 public void AfterPropertiesSet(IBeanContextFactory beanContextFactory)
 {
     beanContextFactory.registerBean <TestXmlPostProcessor>("testXmlPostProcessor").autowireable <TestXmlPostProcessor>();
     beanContextFactory.link("testXmlPostProcessor").to <IXmlPostProcessorExtendable>().with("test1");
     beanContextFactory.link("testXmlPostProcessor").to <IXmlPostProcessorExtendable>().with("test2");
     beanContextFactory.link("testXmlPostProcessor").to <IXmlPostProcessorExtendable>().with("test3");
 }
Exemple #3
0
        public void AfterPropertiesSet(IBeanContextFactory beanContextFactory)
        {
            //Binding binding = WCFClientTargetProvider<Object>.CreateDefaultBinding();
            //EndpointAddress address = new EndpointAddress("http://172.16.1.32:19001/WS_jAmbeth-WS_Test-webapp/GoodBusinessServicePortTypeImplService/GoodBusinessService");
            //GoodBusinessServicePortTypeClient wcfHandle = new GoodBusinessServicePortTypeClient(binding, address);

            //beanContextFactory.registerExternalBean("testService", wcfHandle).autowireable<GoodBusinessServicePortType>();

            //wcfHandle.retriveAllGoodsCompleted += new EventHandler<retriveAllGoodsCompletedEventArgs>(test);
            //wcfHandle.retriveAllGoodsAsync();

            beanContextFactory.registerBean("dummyBean", typeof(DummyBean));

//            if (IsNetworkClientMode && IsCacheServiceBeanActive)
            {
                beanContextFactory.registerBean <ClientServiceBean>("goodBusinessService")
                .propertyValue("Interface", typeof(GoodBusinessServicePortTypeSync))
                .propertyValue("RemoteInterface", typeof(GoodBusinessServicePortType))
                .autowireable <GoodBusinessServicePortTypeSync>();
            }
        }