org.distributeme.support.eventservice.EventServiceRMIBridgeServiceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributeme-support Show documentation
Show all versions of distributeme-support Show documentation
distributeme support utilities needed by generated classes
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