mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 08:23:11 +00:00
@@ -24,6 +24,8 @@ import com.l2jserver.model.id.object.allocator.BitSetIDAllocator;
|
||||
import com.l2jserver.model.id.object.allocator.IDAllocator;
|
||||
import com.l2jserver.model.id.object.factory.CharacterIDFactory;
|
||||
import com.l2jserver.model.id.object.factory.CharacterIDFactory.CharacterIDGuiceFactory;
|
||||
import com.l2jserver.model.id.object.factory.ClanIDFactory;
|
||||
import com.l2jserver.model.id.object.factory.ClanIDFactory.ClanIDGuiceFactory;
|
||||
import com.l2jserver.model.id.object.factory.ItemIDFactory;
|
||||
import com.l2jserver.model.id.object.factory.ItemIDFactory.ItemIDGuiceFactory;
|
||||
import com.l2jserver.model.id.template.factory.CharacterTemplateIDFactory;
|
||||
@@ -51,9 +53,9 @@ public class IDFactoryModule extends AbstractModule {
|
||||
bind(ItemIDFactory.class).in(Scopes.SINGLETON);
|
||||
install(new FactoryModuleBuilder().build(ItemIDGuiceFactory.class));
|
||||
|
||||
// bind(ClanIDFactory.class).in(Scopes.SINGLETON);
|
||||
// install(new FactoryModuleBuilder().build(ClanIDGuiceFactory.class));
|
||||
//
|
||||
bind(ClanIDFactory.class).in(Scopes.SINGLETON);
|
||||
install(new FactoryModuleBuilder().build(ClanIDGuiceFactory.class));
|
||||
|
||||
// bind(PetIDFactory.class).in(Scopes.SINGLETON);
|
||||
// install(new FactoryModuleBuilder().build(PetIDGuiceFactory.class));
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package com.l2jserver.model.id.object;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.assistedinject.Assisted;
|
||||
import com.l2jserver.db.dao.ClanDAO;
|
||||
import com.l2jserver.model.id.ObjectID;
|
||||
import com.l2jserver.model.world.Clan;
|
||||
@@ -33,7 +34,7 @@ public final class ClanID extends ObjectID<Clan> {
|
||||
private final ClanDAO clanDao;
|
||||
|
||||
@Inject
|
||||
protected ClanID(int id, ClanDAO clanDao) {
|
||||
protected ClanID(@Assisted int id, ClanDAO clanDao) {
|
||||
super(id);
|
||||
this.clanDao = clanDao;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user