Examples of afterPropertiesSet()


Examples of org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection.afterPropertiesSet()

    collection.setRequiredAtStartup(getCardinality().isMandatory());
    collection.setListeners(getListeners());
    collection.setStateListeners(stateListeners);
    collection.setServiceImporter(this);
    collection.setServiceImporterName(getBeanName());
    collection.afterPropertiesSet();

    proxy = delegate;
    exposedProxy = collection;
    proxyDestructionCallback = new DisposableBeanRunnableAdapter(collection);
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceList.afterPropertiesSet()

  protected Collection createCollection() {
    ClassLoader classLoader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundleContext.getBundle());
    OsgiServiceList col = new OsgiServiceList(null, bundleContext, classLoader, null);
    col.setRequiredAtStartup(false);
    // col.setInterfaces(new Class[] { Date.class });
    col.afterPropertiesSet();
    return col;
  }

  public void testListContent() throws Exception {
    List list = (List) createCollection();
View Full Code Here

Examples of org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer.afterPropertiesSet()

  private WarDeployer createDefaultWarDeployer(BundleContext bundleContext) {
    TomcatWarDeployer deployer = new TomcatWarDeployer();
    deployer.setBundleContext(bundleContext);
    try {
      deployer.afterPropertiesSet();
      return deployer;
    }
    catch (Exception ex) {
      throw new OsgiException("Cannot create Tomcat deployer", ex);
    }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller.afterPropertiesSet()

  protected Unmarshaller getUnmarshaller() throws Exception {
    CastorMarshaller unmarshaller = new CastorMarshaller();
    unmarshaller.setMappingLocation(new ClassPathResource("mapping-castor.xml", getClass()));
    // alternatively target class can be set
    //unmarshaller.setTargetClass(Trade.class);
    unmarshaller.afterPropertiesSet();
    return unmarshaller;
  }

}
View Full Code Here

Examples of org.springframework.oxm.jaxb.Jaxb2Marshaller.afterPropertiesSet()

        wac.registerBeanDefinition("controller", new RootBeanDefinition(RequestBodyArgMismatchController.class));

        Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
        marshaller.setClassesToBeBound(A.class, B.class);
        try {
          marshaller.afterPropertiesSet();
        }
        catch (Exception ex) {
          throw new BeanCreationException(ex.getMessage(), ex);
        }
View Full Code Here

Examples of org.springframework.oxm.xstream.XStreamMarshaller.afterPropertiesSet()

  public static Collection<Object[]> testParams() {
    // XStream serializer
    XStreamMarshaller xstream = new XStreamMarshaller();
    try {
      xstream.afterPropertiesSet();
    } catch (Exception ex) {
      throw new RuntimeException("Cannot init XStream", ex);
    }
    OxmSerializer serializer = new OxmSerializer(xstream, xstream);
    JacksonJsonRedisSerializer<Person> jsonSerializer = new JacksonJsonRedisSerializer<Person>(Person.class);
View Full Code Here

Examples of org.springframework.remoting.caucho.HessianProxyFactoryBean.afterPropertiesSet()

      try
      {
         HessianProxyFactoryBean factory = new HessianProxyFactoryBean();
         factory.setServiceInterface(SpringHessianServer.class);
         factory.setServiceUrl("http://localhost:8080/remoting/springHessianServerService");
         factory.afterPropertiesSet();
         springHessianServerService = (SpringHessianServer) factory.getObject();
      }
      catch (MalformedURLException e)
      {
         e.printStackTrace();
View Full Code Here

Examples of org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean.afterPropertiesSet()

   
    final HttpInvokerProxyFactoryBean factoryBean = new HttpInvokerProxyFactoryBean();

    factoryBean.setServiceInterface(Browsable.class);
    factoryBean.setServiceUrl("http://localhost:8888/bobo-service/services/BrowseService");
    factoryBean.afterPropertiesSet();

    final Browsable svc = (Browsable) (factoryBean.getObject());

    int numThreads = 1;
   
View Full Code Here

Examples of org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter.afterPropertiesSet()

        }
        final HttpInvokerServiceExporter httpServiceExporter = new HttpInvokerServiceExporter();
        httpServiceExporter.setServiceInterface(type);
        httpServiceExporter.setService(impl);
        try {
            httpServiceExporter.afterPropertiesSet();
        } catch (Exception e) {
            throw new RpcException(e.getMessage(), e);
        }
        final String path = url.getAbsolutePath();
        skeletonMap.put(path, httpServiceExporter);
View Full Code Here

Examples of org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet()

            rmiProxyFactoryBean.setServiceUrl(url.toIdentityString());
            rmiProxyFactoryBean.setServiceInterface(serviceType);
            rmiProxyFactoryBean.setCacheStub(true);
            rmiProxyFactoryBean.setLookupStubOnStartup(true);
            rmiProxyFactoryBean.setRefreshStubOnConnectFailure(true);
            rmiProxyFactoryBean.afterPropertiesSet();
            final Object remoteObject = rmiProxyFactoryBean.getObject();
            return new Invoker<T>() {
                public Class<T> getInterface() {
                    return serviceType;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.