All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.distributeme.support.eventservice.EventServiceRMIBridgeServiceFactory Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package org.distributeme.support.eventservice;

import net.anotheria.anoprise.eventservice.EventService;
import net.anotheria.anoprise.eventservice.EventServiceFactory;
import net.anotheria.anoprise.eventservice.EventServiceImpl;
import net.anotheria.anoprise.metafactory.ServiceFactory;

public class EventServiceRMIBridgeServiceFactory implements ServiceFactory{

	@Override
	public EventServiceRMIBridgeService create() {
		
		EventService es = EventServiceFactory.createEventService();
		DiMeRemoteEventChannelRMISupport supportObject = new DiMeRemoteEventChannelRMISupport();
		((EventServiceImpl)es).setRemoteSupportFactory(supportObject);
		es.addListener(supportObject);
		
		EventServiceRMIBridgeServiceImpl instance = new EventServiceRMIBridgeServiceImpl(supportObject);
		return instance;
		
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy