1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 08:23:11 +00:00

Change-Id: I375a10c9d7ce56df457a998e5cb9d02465865973

This commit is contained in:
rogiel
2011-04-29 20:17:57 -03:00
parent 0662150229
commit f1d8e6588f
16 changed files with 825 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.l2jserver.service;
import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import com.l2jserver.service.network.NettyNetworkService;
import com.l2jserver.service.network.NetworkService;
public class ServiceModule extends AbstractModule {
@Override
protected void configure() {
bind(NetworkService.class).to(NettyNetworkService.class).in(
Scopes.SINGLETON);
}
}

View File

@@ -0,0 +1,21 @@
package com.l2jserver.service.game.world;
import com.l2jserver.model.world.event.WorldEvent;
/**
* This event dispatcher notify listeners that an certain event occured in their
* objects.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface WorldEventDispatcher {
/**
* Notify listeners of the <tt>event</tt>. Note that not all implementation
* need to invoke listeners immediately. Dispatching <b>can</b> occur
* concurrently.
*
* @param event
* the event
*/
void dispatch(WorldEvent event);
}