Package de.novanic.eventservice.service.connection.id

Examples of de.novanic.eventservice.service.connection.id.ConnectionIdGenerator


        final TestEventServiceConfiguration theConfig = new TestEventServiceConfiguration();
        theConfig.setConnectionIdGeneratorClassName(SessionConnectionIdGenerator.class.getName());

        ConfigurationDependentFactory theConfigurationDependentFactory = ConfigurationDependentFactory.getInstance(theConfig);

        final ConnectionIdGenerator theConnectionIdGenerator = theConfigurationDependentFactory.getConnectionIdGenerator();
        assertNotNull(theConnectionIdGenerator);
        assertTrue(theConnectionIdGenerator instanceof SessionConnectionIdGenerator);
    }
View Full Code Here


    public EventExecutorService getEventExecutorService(HttpServletRequest aRequest) {
        String theConnectionId = null;
        if(aRequest != null) {
            EventServiceConfiguration theConfiguration = EventRegistryFactory.getInstance().getEventRegistry().getConfiguration();

            ConnectionIdGenerator theConnectionIdGenerator = ConfigurationDependentFactory.getInstance(theConfiguration).getConnectionIdGenerator();
            theConnectionId = theConnectionIdGenerator.getConnectionId(aRequest);
        }
        return getEventExecutorService(theConnectionId);
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.service.connection.id.ConnectionIdGenerator

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.