1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-05 23:22:47 +00:00

Removes loginserver deprecated classes and improves javadoc

This commit is contained in:
2011-12-28 12:24:31 -02:00
parent 976cfaf4e0
commit 1f100326ba
29 changed files with 12 additions and 1228 deletions

View File

@@ -77,6 +77,9 @@ public class ServiceManager {
.newMap();
/**
* Loads an service descriptor XML file in order to bind XML services to the
* server runtime.
*
* @param file
* the XML file
* @throws SAXException
@@ -121,7 +124,7 @@ public class ServiceManager {
* Initializes the service manager
*
* @param injector
* the injector instance
* the {@link Injector} instance
* @throws ServiceStartException
* if any error occur while starting logging or configuration
* service
@@ -150,6 +153,10 @@ public class ServiceManager {
}
/**
* Returns the ServiceDescriptor binded to <code>serviceClass</code>. If no
* implementation of <code>serviceClass</code>, <code>null</code> is
* returned.
*
* @param serviceClass
* the service class
* @return the {@link ServiceDescriptor} for the requested service
@@ -273,13 +280,13 @@ public class ServiceManager {
}
/**
* Creates a {@link Set} of all dependecies to be stopped
* Creates a {@link Set} of all dependencies to be stopped
*
* @param depends
* the service
* @param serviceClass
* the service class
* @return the {@link Set} of all depedendecies to be stopped
* @return the {@link Set} of all dependencies to be stopped
*/
private Set<Class<? extends Service>> createStopDependencies(
Set<Class<? extends Service>> depends, Service serviceClass) {

View File

@@ -999,6 +999,7 @@ public abstract class AbstractSQLDatabaseService extends
object = mapper.select(entity,
new SQLDatabaseRow(results.get(0), entity));
updateCache(object, database);
updateDesire(object, ObjectDesire.INSERT);
}
return object;
} else {
@@ -1047,6 +1048,7 @@ public abstract class AbstractSQLDatabaseService extends
if (object == null) {
object = mapper.select(entity, row);
updateCache(object, database);
updateDesire(object, ObjectDesire.INSERT);
}
if (object != null)
objects.add(object);