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

Javadoc fixes and fixes missing dependency ChatMessageIDProvider in

IDProviderModule

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-07-30 21:36:45 -03:00
parent 9b25d29192
commit 17fb84faab
23 changed files with 102 additions and 19 deletions

View File

@@ -83,7 +83,6 @@ public interface Model<T extends ID<?>> {
* database exception will occur.
*/
INSERT,
/**
* Updates the object in the database.
* <p>

View File

@@ -18,10 +18,14 @@ package com.l2jserver.model.id;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.id.provider.IDProvider;
/**
* Each account is identified by its {@link ID}. This {@link ID} is equal to the
* account username or login.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -18,9 +18,13 @@ package com.l2jserver.model.id;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.id.provider.IDProvider;
/**
* Each {@link Castle} is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -18,10 +18,14 @@ package com.l2jserver.model.id;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.server.ChatMessage;
/**
* Each {@link ChatMessage} log entry is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,9 +19,13 @@ package com.l2jserver.model.id;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.game.Fort;
import com.l2jserver.model.id.provider.IDProvider;
/**
* Each {@link Fort} is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -21,9 +21,13 @@ import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.game.CharacterFriend;
import com.l2jserver.model.id.compound.AbstractCompoundID;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.id.provider.IDProvider;
/**
* Each {@link CharacterFriend} is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -25,6 +25,9 @@ import com.l2jserver.model.world.WorldObject;
* an {@link IDProvider}. The {@link ObjectID} provides a facility
* {@link #getObject() method} that allows easily fetch this object from
* database without the need to directly use DAOs.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*

View File

@@ -22,10 +22,14 @@ import com.l2jserver.model.game.Shortcut;
import com.l2jserver.model.id.compound.AbstractCompoundID;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.id.object.ItemID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.id.template.SkillTemplateID;
/**
* Each {@link Shortcut} is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -21,10 +21,14 @@ import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.game.CharacterFriend;
import com.l2jserver.model.id.compound.AbstractCompoundID;
import com.l2jserver.model.id.object.ActorID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.id.template.SkillTemplateID;
/**
* Each {@link CharacterFriend} is identified by an {@link ID}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,11 +19,15 @@ package com.l2jserver.model.id;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.template.Template;
/**
* Templates IDs, different from {@link ObjectID}s, can be repeated and are
* defined in the template class.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,10 +19,14 @@ package com.l2jserver.model.id.object;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.id.ObjectID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.world.Actor;
/**
* An {@link ObjectID} instance representing an {@link Actor} object
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
* @param <T>

View File

@@ -20,10 +20,14 @@ import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.db.dao.CharacterDAO;
import com.l2jserver.model.id.ObjectID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.world.L2Character;
/**
* An {@link ObjectID} instance representing an {@link L2Character} object
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -20,10 +20,14 @@ 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.id.provider.IDProvider;
import com.l2jserver.model.world.Clan;
/**
* An {@link ObjectID} instance representing an {@link Clan} object
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -20,10 +20,14 @@ import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.db.dao.ItemDAO;
import com.l2jserver.model.id.ObjectID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.world.Item;
/**
* An {@link ObjectID} instance representing an {@link Item} object
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,6 +19,7 @@ package com.l2jserver.model.id.object;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.l2jserver.model.id.ObjectID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.world.NPC;
import com.l2jserver.service.database.DataAccessObject;
import com.l2jserver.service.game.world.WorldService;
@@ -27,6 +28,9 @@ import com.l2jserver.service.game.world.WorldService;
* An {@link ObjectID} instance representing an {@link NPC} object. Since NPC
* instances are stores in run-time only, the search is performed in the
* {@link WorldService} instead of using a {@link DataAccessObject}.
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,10 +19,14 @@ package com.l2jserver.model.id.object;
import com.google.inject.Inject;
import com.l2jserver.db.dao.PetDAO;
import com.l2jserver.model.id.ObjectID;
import com.l2jserver.model.id.provider.IDProvider;
import com.l2jserver.model.world.Pet;
/**
* An {@link ObjectID} instance representing an {@link Pet} object
* <p>
* Please, do not directly instantiate this class, use an {@link IDProvider}
* instead.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -19,8 +19,17 @@ package com.l2jserver.model.id.provider;
import com.l2jserver.model.id.ID;
/**
* The ID factory is used to create instances of IDs. It will automatically make
* sure the ID is free before allocating it.
* ID objects should never be directly instantiated and an provider
* implementation must be used to create and generate them.
* <p>
*
* The ID provider is used to create instances of IDs. It will automatically
* make sure the ID is free before allocating it.
* <p>
* The provider will also make sure only a single instance for each raw ID
* exits, that is for any given ID instance for raw value <b>1</b> only a single
* object will be created and following calls will always return the same
* object.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/

View File

@@ -70,6 +70,7 @@ public class IDProviderModule extends AbstractModule {
install(new FactoryModuleBuilder().build(AccountIDProvider.class));
install(new FactoryModuleBuilder().build(FortIDProvider.class));
install(new FactoryModuleBuilder().build(FriendIDProvider.class));
install(new FactoryModuleBuilder().build(ChatMessageIDProvider.class));
// TEMPLATE IDS
install(new FactoryModuleBuilder().build(ItemTemplateIDProvider.class));