1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-10 09:22:49 +00:00

Update project files for Eclipse Indigo (1.7)

This commit is contained in:
2011-09-13 17:04:49 -03:00
parent ed702f7ab0
commit 8a8557606f
14 changed files with 117 additions and 65 deletions

View File

@@ -261,6 +261,7 @@ public class CharacterStats extends ActorStats<CharacterCalculatorContext> {
*/
private final L2Character character;
@SuppressWarnings("unchecked")
private static final CharacterCalculator calculator = new CharacterCalculator(
StatType.class);

View File

@@ -0,0 +1,28 @@
/*
* This file is part of l2jserver <l2jserver.com>.
*
* l2jserver is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* l2jserver is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with l2jserver. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.service;
import com.l2jserver.service.configuration.Configuration;
/**
* Base interface for all {@link Service} {@link Configuration} classes.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface ServiceConfiguration extends Configuration {
}

View File

@@ -27,8 +27,8 @@ import com.l2jserver.service.core.Log4JLoggingService;
import com.l2jserver.service.core.LoggingService;
import com.l2jserver.service.core.threading.ThreadService;
import com.l2jserver.service.core.threading.ThreadServiceImpl;
import com.l2jserver.service.core.vfs.VFSService;
import com.l2jserver.service.core.vfs.Java7VFSService;
import com.l2jserver.service.core.vfs.VFSService;
import com.l2jserver.service.database.DatabaseService;
import com.l2jserver.service.database.JDBCDatabaseService;
import com.l2jserver.service.game.AttackService;

View File

@@ -20,6 +20,7 @@ import java.net.URI;
import java.nio.file.Path;
import com.l2jserver.service.Service;
import com.l2jserver.service.ServiceConfiguration;
import com.l2jserver.service.configuration.Configuration;
import com.l2jserver.service.configuration.Configuration.ConfigurationName;
@@ -37,7 +38,7 @@ public interface VFSService extends Service {
* @see Configuration
*/
@ConfigurationName("vfs")
public interface VFSConfiguration extends Configuration {
public interface VFSConfiguration extends ServiceConfiguration {
/**
* @return the VFS root {@link URI}
*/

View File

@@ -19,6 +19,7 @@ package com.l2jserver.service.database;
import com.l2jserver.model.Model;
import com.l2jserver.model.id.ID;
import com.l2jserver.service.Service;
import com.l2jserver.service.ServiceConfiguration;
import com.l2jserver.service.configuration.Configuration;
import com.l2jserver.service.configuration.Configuration.ConfigurationName;
@@ -45,7 +46,7 @@ public interface DatabaseService extends Service {
* @see Configuration
*/
@ConfigurationName("database")
public interface DatabaseConfiguration extends Configuration {
public interface DatabaseConfiguration extends ServiceConfiguration {
}
<M extends Model<I>, I extends ID<M>> DataAccessObject<M, I> getDAO(

View File

@@ -24,6 +24,7 @@ import com.l2jserver.model.world.Item;
import com.l2jserver.model.world.L2Character;
import com.l2jserver.model.world.NPC;
import com.l2jserver.service.Service;
import com.l2jserver.service.ServiceConfiguration;
/**
* Service that loads {@link L2Character}, {@link NPC}, {@link Item} and
@@ -36,6 +37,9 @@ import com.l2jserver.service.Service;
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface TemplateService extends Service {
public interface TemplateServiceConfiguration extends ServiceConfiguration {
}
/**
* Get the template assigned with <tt>id</tt>
*

View File

@@ -53,7 +53,6 @@ import com.l2jserver.service.ServiceStartException;
import com.l2jserver.service.ServiceStopException;
import com.l2jserver.service.cache.Cache;
import com.l2jserver.service.cache.CacheService;
import com.l2jserver.service.configuration.Configuration;
import com.l2jserver.service.configuration.Configuration.ConfigurationName;
import com.l2jserver.service.configuration.ConfigurationService;
import com.l2jserver.service.core.LoggingService;
@@ -85,9 +84,10 @@ public class XMLTemplateService extends AbstractService implements
@SuppressWarnings("rawtypes")
private Cache<TemplateID, Template> templates;
@ConfigurationName("template")
public interface XMLTemplateServiceConfiguration extends Configuration {
public interface XMLTemplateServiceConfiguration extends
TemplateServiceConfiguration {
@ConfigurationPropertyGetter(name = "template.directory", defaultValue = "data/templates")
URI getTemplateDirectory();

View File

@@ -25,6 +25,7 @@ import com.l2jserver.game.net.packet.ServerPacket;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.world.L2Character;
import com.l2jserver.service.Service;
import com.l2jserver.service.ServiceConfiguration;
import com.l2jserver.service.configuration.Configuration;
import com.l2jserver.service.configuration.Configuration.ConfigurationName;
@@ -71,7 +72,7 @@ public interface NetworkService extends Service {
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
@ConfigurationName("network")
public interface NetworkConfiguration extends Configuration {
public interface NetworkConfiguration extends ServiceConfiguration {
/**
* Get the server listen address
*
@@ -90,7 +91,6 @@ public interface NetworkService extends Service {
void setListenAddress(InetSocketAddress addr);
}
/**
* Registers a new client
*

View File

@@ -26,8 +26,6 @@ import org.apache.commons.math.geometry.Vector3D;
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public class Coordinate {
private static final long serialVersionUID = 1L;
/**
* The backing vector of this Coordinate
*/