mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 08:23:11 +00:00
Change-Id: I375a10c9d7ce56df457a998e5cb9d02465865973
This commit is contained in:
14
src/main/java/com/l2jserver/service/ServiceModule.java
Normal file
14
src/main/java/com/l2jserver/service/ServiceModule.java
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user