Examples of afterPropertiesSet()


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

            rmiServiceExporter.setRegistryPort(invoker.getUrl().getPort());
            rmiServiceExporter.setServiceName(invoker.getUrl().getPath());
            rmiServiceExporter.setServiceInterface(invoker.getInterface());
            rmiServiceExporter.setService(proxyFactory.getProxy(invoker));
            try {
                rmiServiceExporter.afterPropertiesSet();
            } catch (RemoteException e) {
                throw new RpcException(e.getMessage(), e);
            }
            Exporter<T> exporter = new Exporter<T>() {
                public Invoker<T> getInvoker() {
View Full Code Here

Examples of org.springframework.samples.mvc31.exceptionhandler.mvc.ExtendedExceptionHandlerExceptionResolver.afterPropertiesSet()

  @Override
  public void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) {
    ExtendedExceptionHandlerExceptionResolver customResolver = new ExtendedExceptionHandlerExceptionResolver();
    customResolver.setExceptionHandler(new GlobalExceptionHandler());
    customResolver.setMessageConverters(getMessageConverters());
    customResolver.afterPropertiesSet();

    exceptionResolvers.add(customResolver);
  }

}
View Full Code Here

Examples of org.springframework.scheduling.backportconcurrent.ThreadPoolTaskExecutor.afterPropertiesSet()

        // use a spring 2.x task executor
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.setCorePoolSize(4);
        executor.setMaxPoolSize(16);
        executor.setThreadNamePrefix("foo");
        executor.afterPropertiesSet();
        jms.setTaskExecutorSpring2(executor);

        camelContext.addComponent("activemq", jms);

        return camelContext;
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ScheduledExecutorFactoryBean.afterPropertiesSet()

  protected final ScheduledExecutorService initScheduledExecutorService() {

    ScheduledExecutorFactoryBean factoryBean = new ScheduledExecutorFactoryBean();
    factoryBean.setThreadNamePrefix(getThreadNamePrefix());
    factoryBean.afterPropertiesSet();

    return factoryBean.getObject();

  }
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ThreadPoolExecutorFactoryBean.afterPropertiesSet()

        threadPoolExecutorFactoryBean.setThreadPriority(5);
        threadPoolExecutorFactoryBean.setKeepAliveSeconds(30);
        threadPoolExecutorFactoryBean.setDaemon(true);
        threadPoolExecutorFactoryBean.setAllowCoreThreadTimeOut(true);
        threadPoolExecutorFactoryBean.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
        threadPoolExecutorFactoryBean.afterPropertiesSet();
       
        threadPoolExecutor = threadPoolExecutorFactoryBean.getObject();
        this.dataImportExportService.setImportExportThreadPool(threadPoolExecutor);
       
        dataImportExportService.setDataFileIncludes(ImmutableSet.of(
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.afterPropertiesSet()

        return false;
    }

    private void sendMessagesToQueue() throws Exception {
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.afterPropertiesSet();
        executor.execute(new Runnable() {
            public void run() {
                for (int i = 0; i < 20; i++) {
                    try {
                        // do some random sleep to simulate spread in user activity
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.afterPropertiesSet()

    context.getBeanFactory().registerSingleton(IntegrationUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME,
        new DefaultMessageBuilderFactory());
    DefaultHeaderChannelRegistry channelRegistry = new DefaultHeaderChannelRegistry();
    channelRegistry.setReaperDelay(Long.MAX_VALUE);
    ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
    taskScheduler.afterPropertiesSet();
    channelRegistry.setTaskScheduler(taskScheduler);
    context.getBeanFactory().registerSingleton(
        IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME,
        channelRegistry);
    context.refresh();
View Full Code Here

Examples of org.springframework.scheduling.quartz.CronTriggerBean.afterPropertiesSet()

    cronTriggerBean.setJobDataAsMap(jobDataAsMap);
    cronTriggerBean.setJobName(getJobName());
    if (getJobGroup() != null) {
      cronTriggerBean.setJobGroup(getJobGroup());
    }
    cronTriggerBean.afterPropertiesSet();
   
    repo.registerComponent(info, cronTriggerBean);
   
    Scheduler scheduler = getScheduler();
    scheduler.scheduleJob(cronTriggerBean);
View Full Code Here

Examples of org.springframework.scheduling.quartz.CronTriggerFactoryBean.afterPropertiesSet()

        final TimeZone timeZone = TimeZone.getTimeZone(tenant.getTimezoneId());
        cronTriggerFactoryBean.setTimeZone(timeZone);
        cronTriggerFactoryBean.setGroup(scheduledJobDetails.getGroupName());
        cronTriggerFactoryBean.setCronExpression(scheduledJobDetails.getCronExpression());
        cronTriggerFactoryBean.setPriority(scheduledJobDetails.getTaskPriority());
        cronTriggerFactoryBean.afterPropertiesSet();
        return cronTriggerFactoryBean.getObject();
    }

    private String getStackTraceAsString(final Throwable throwable) {
        final StackTraceElement[] stackTraceElements = throwable.getStackTrace();
View Full Code Here

Examples of org.springframework.scheduling.quartz.JobDetailBean.afterPropertiesSet()

    jobDataMap.put("globalPrefix", getGlobalPrefix());
    jobDataMap.put("htsMaster", getHtsMaster());
    jobDataMap.put("redisConnector", getRedisConnector());
    jobDataMap.put("baseDir", getBaseDir());
   
    jobDetailBean.afterPropertiesSet();
       
    Scheduler scheduler = getScheduler();
    scheduler.addJob(jobDetailBean, true);
   
    repo.registerComponent(info, jobDetailBean);
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.