Examples of afterPropertiesSet()


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

    JobDetailFactoryBean jobFactory = new JobDetailFactoryBean();
    jobFactory.setName(sch.getSchId());
    jobFactory.setDescription(sch.getSchDesc());
    jobFactory.setJobClass(JobLauncherDetail.class);
    jobFactory.setJobDataAsMap(map);
    jobFactory.afterPropertiesSet();
    return jobFactory.getObject();
  }// ;

  public void setBatchService(BatchJobService batchService) {
    this.batchService = batchService;
View Full Code Here

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

        jobDetailFactoryBean.setName(scheduledJobDetail.getJobName() + "JobDetail" + tenant.getId());
        jobDetailFactoryBean.setTargetObject(targetObject);
        jobDetailFactoryBean.setTargetMethod(jobDetails.methodName);
        jobDetailFactoryBean.setGroup(scheduledJobDetail.getGroupName());
        jobDetailFactoryBean.setConcurrent(false);
        jobDetailFactoryBean.afterPropertiesSet();
        return jobDetailFactoryBean.getObject();
    }

    private Object getBeanObject(final Class<?> classType) throws ClassNotFoundException {
        final List<Class<?>> typesList = new ArrayList<>();
View Full Code Here

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

        SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean();
        schedulerFactoryBean.setAutoStartup(false);
        schedulerFactoryBean.setWaitForJobsToCompleteOnShutdown(false);
        schedulerFactoryBean.setQuartzProperties(properties);
        schedulerFactoryBean.afterPropertiesSet();

        queue = new LinkedBlockingQueue<AutomaticJobExecutionParameters>();

        ScheduleJobExecutorService scheduleJobExecutorService = new ScheduleJobExecutorServiceMock(queue);
View Full Code Here

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

        endpoint.setEndpoint("endpoint");
        endpoint.setTargetService(new QName("receiver"));
        SimpleTriggerBean trigger = new SimpleTriggerBean();
        trigger.setRepeatInterval(100);
        trigger.setName("trigger");
        trigger.afterPropertiesSet();
        endpoint.setTrigger(trigger);
        quartz.setEndpoints(new QuartzEndpoint[] {endpoint });
        jbi.activateComponent(quartz, "servicemix-quartz");
       
        ReceiverComponent receiver = new ReceiverComponent(new QName("receiver"), "endpoint");
View Full Code Here

Examples of org.springframework.scheduling.timer.TimerTaskExecutor.afterPropertiesSet()

    return taskExecutor;
  }

  private TaskExecutor createDefaultShutdownTaskExecutor() {
    TimerTaskExecutor taskExecutor = new TimerTaskExecutor();
    taskExecutor.afterPropertiesSet();
    isShutdownTaskExecutorManagedInternally = true;
    return taskExecutor;
  }

  private OsgiBundleApplicationContextEventMulticaster createDefaultEventMulticaster() {
View Full Code Here

Examples of org.springframework.security.access.intercept.AfterInvocationProviderManager.afterPropertiesSet()

        list.add(new MockAfterInvocationProvider("swap1", MethodInvocation.class, new SecurityConfig("GIVE_ME_SWAP1")));
        list.add(new MockAfterInvocationProvider("swap2", MethodInvocation.class, new SecurityConfig("GIVE_ME_SWAP2")));
        list.add(new MockAfterInvocationProvider("swap3", MethodInvocation.class, new SecurityConfig("GIVE_ME_SWAP3")));
        manager.setProviders(list);
        assertEquals(list, manager.getProviders());
        manager.afterPropertiesSet();

        List<ConfigAttribute> attr1 = SecurityConfig.createList(new String[] {"GIVE_ME_SWAP1"});
        List<ConfigAttribute> attr2 = SecurityConfig.createList(new String[] {"GIVE_ME_SWAP2"});
        List<ConfigAttribute> attr3 = SecurityConfig.createList(new String[] {"GIVE_ME_SWAP3"});
        List<ConfigAttribute> attr2and3 = SecurityConfig.createList(new String[] {"GIVE_ME_SWAP2","GIVE_ME_SWAP3"});
View Full Code Here

Examples of org.springframework.security.access.intercept.MethodInvocationPrivilegeEvaluator.afterPropertiesSet()

        MethodInvocationPrivilegeEvaluator mipe = new MethodInvocationPrivilegeEvaluator();
        when(mds.getAttributes(mi)).thenReturn(role);

        mipe.setSecurityInterceptor(interceptor);
        mipe.afterPropertiesSet();

        assertTrue(mipe.isAllowed(mi, token));
    }

    @Test
View Full Code Here

Examples of org.springframework.security.authentication.RememberMeAuthenticationProvider.afterPropertiesSet()

    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildRememberMeAuthenticationProvider(
            @Inject @Value( "${spring-security.rememberme.key}" ) final String rememberMeKey ) throws Exception {

        final RememberMeAuthenticationProvider provider = new RememberMeAuthenticationProvider(rememberMeKey);
        provider.afterPropertiesSet();
        return provider;
    }

    @Marker( SpringSecurityServices.class )
    public final AuthenticationProvider buildDaoAuthenticationProvider(
View Full Code Here

Examples of org.springframework.security.authentication.dao.DaoAuthenticationProvider.afterPropertiesSet()

        final DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
        provider.setUserDetailsService( userDetailsService );
        provider.setPasswordEncoder( passwordEncoder );
        provider.setSaltSource( saltSource );
        provider.afterPropertiesSet();
        return provider;
    }

    public final void contributeAuthenticationManager(
            final OrderedConfiguration<AuthenticationProvider> configuration,
View Full Code Here

Examples of org.springframework.security.authentication.dao.ReflectionSaltSource.afterPropertiesSet()

    //~ Methods ========================================================================================================

    @Test(expected=IllegalArgumentException.class)
    public void detectsMissingUserPropertyToUse() throws Exception {
        ReflectionSaltSource saltSource = new ReflectionSaltSource();
        saltSource.afterPropertiesSet();
    }

    @Test(expected=AuthenticationServiceException.class)
    public void exceptionIsThrownWhenInvalidPropertyRequested() throws Exception {
        ReflectionSaltSource saltSource = new ReflectionSaltSource();
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.