Package de.novanic.eventservice.config.loader

Examples of de.novanic.eventservice.config.loader.PropertyConfigurationLoader


    @Test
    public void testInit_2() throws Exception {
        final EventServiceConfigurationFactory theEventServiceConfigurationFactory = EventServiceConfigurationFactory.getInstance();
        //remove the PropertyConfigurationLoaders, because there is a eventservice.properties in the classpath and that prevents the WebDescriptorConfigurationLoader from loading.
        theEventServiceConfigurationFactory.removeConfigurationLoader(new PropertyConfigurationLoader());

        myEventService = new DummyEventServiceImpl(new DummyServletConfig());
        super.setUp(myEventService);

        assertEquals(0, myEventService.getActiveListenDomains().size());
View Full Code Here


    @Test
    public void testInitEventService() throws Exception {
        final EventServiceConfigurationFactory theEventServiceConfigurationFactory = EventServiceConfigurationFactory.getInstance();
        //remove the PropertyConfigurationLoaders, because there is a eventservice.properties in the classpath and that prevents the WebDescriptorConfigurationLoader from loading.
        theEventServiceConfigurationFactory.removeConfigurationLoader(new PropertyConfigurationLoader());

        myEventService = new DummyEventServiceImpl(new DummyServletConfig(SessionConnectionIdGenerator.class.getName()));
        super.setUp(myEventService);

        EventServiceConfigurationTransferable theEventServiceConfigurationTransferable = myEventService.initEventService();
View Full Code Here

    @Test
    public void testDestroyEventService() throws Exception {
        final EventServiceConfigurationFactory theEventServiceConfigurationFactory = EventServiceConfigurationFactory.getInstance();
        //remove the PropertyConfigurationLoaders, because there is a eventservice.properties in the classpath and that prevents the WebDescriptorConfigurationLoader from loading.
        theEventServiceConfigurationFactory.removeConfigurationLoader(new PropertyConfigurationLoader());

        myEventService = new DummyEventServiceImpl(new DummyServletConfig(SessionConnectionIdGenerator.class.getName()));
        super.setUp(myEventService);

        EventRegistry theEventRegistry = EventRegistryFactory.getInstance().getEventRegistry();
View Full Code Here

        ServletOutputStream theOutputStream = new DummyServletOutputStream(new ByteArrayOutputStream());
        when(theResponseMock.getOutputStream()).thenReturn(theOutputStream);

        final EventServiceConfigurationFactory theEventServiceConfigurationFactory = EventServiceConfigurationFactory.getInstance();
        //remove the PropertyConfigurationLoaders, because there is a eventservice.properties in the classpath and that prevents the WebDescriptorConfigurationLoader from loading.
        theEventServiceConfigurationFactory.removeConfigurationLoader(new PropertyConfigurationLoader());

        myEventService = new DummyEventServiceImpl(new DummyServletConfig());
        super.setUp(myEventService);

        myEventService.doGet(theRequestMock, theResponseMock);
View Full Code Here

     * The returned configurations get enriched with default values when the parameters / options aren't configured.
     * @return the configuration ({@link de.novanic.eventservice.config.EventServiceConfiguration})
     * @throws ConfigurationException thrown when a configuration is available, but can't be loaded
     */
    public EventServiceConfiguration loadEventServiceConfiguration(String aPropertyName) {
        replaceConfigurationLoader(ConfigLevelFactory.DEFAULT, new PropertyConfigurationLoader(aPropertyName));
        initConfigurationLoaders();
        return loadEventServiceConfiguration();
    }
View Full Code Here

    /**
     * Initializes and registers the pre-definied ConfigurationLoaders ({@link de.novanic.eventservice.config.loader.ConfigurationLoader}).
     * See the class description of {@link de.novanic.eventservice.config.EventServiceConfigurationFactory} for more information.
     */
    private void initConfigurationLoaders() {
        replaceConfigurationLoader(ConfigLevelFactory.DEFAULT, new PropertyConfigurationLoader());
        replaceConfigurationLoader(ConfigLevelFactory.HIGHEST, new DefaultConfigurationLoader());
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.config.loader.PropertyConfigurationLoader

Copyright © 2018 www.massapicom. 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.