Simple fixes.
This commit is contained in:
@@ -28,7 +28,7 @@ public class ChatRoomMediator {
|
||||
}
|
||||
|
||||
public List<ChatMessage> joinUser(String playerId) {
|
||||
_lock.writeLock();
|
||||
_lock.writeLock().lock();
|
||||
try {
|
||||
GatheringChatRoomListener value = new GatheringChatRoomListener();
|
||||
_listeners.put(playerId, value);
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
package com.gempukku.lotro.server.provider;
|
||||
|
||||
import com.gempukku.lotro.game.LotroCardBlueprintLibrary;
|
||||
import com.sun.jersey.core.spi.component.ComponentContext;
|
||||
import com.sun.jersey.core.spi.component.ComponentScope;
|
||||
import com.sun.jersey.spi.inject.Injectable;
|
||||
import com.sun.jersey.spi.inject.InjectableProvider;
|
||||
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.ext.Provider;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
@Provider
|
||||
public class CardLibraryProvider implements InjectableProvider<Context, Type>, Injectable<LotroCardBlueprintLibrary> {
|
||||
private LotroCardBlueprintLibrary _library;
|
||||
|
||||
public CardLibraryProvider() {
|
||||
_library = new LotroCardBlueprintLibrary();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ComponentScope getScope() {
|
||||
return ComponentScope.Singleton;
|
||||
}
|
||||
|
||||
@Override
|
||||
public LotroCardBlueprintLibrary getValue() {
|
||||
return _library;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Injectable getInjectable(ComponentContext ic, Context context, Type type) {
|
||||
if (type.equals(LotroCardBlueprintLibrary.class))
|
||||
return this;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -34,8 +34,7 @@ public class DaoProvider implements InjectableProvider<Context, Type> {
|
||||
private DbAccess _dbAccess;
|
||||
private CollectionSerializer _collectionSerializer;
|
||||
|
||||
@Context
|
||||
private LotroCardBlueprintLibrary _library;
|
||||
private LotroCardBlueprintLibrary _library = new LotroCardBlueprintLibrary();
|
||||
|
||||
public DaoProvider() {
|
||||
_dbAccess = new DbAccess();
|
||||
|
||||
Reference in New Issue
Block a user