1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 16:33:07 +00:00

Implement XML configuration files instead of .properties

Added support for XML configuration files. Instead of each interface
loading it's own file, a single XML file will contain all properties and
parsing XML file will be done at service start.
Created a new annotation: @ConfigurationXPath and removed "name"
argument from @ConfigurationPropertySetter and
@ConfigurationPropertyGetter. Also, moves @ConfigurationName to
ProxyConfigurationService since it is not used by the XML
implementation.
This commit is contained in:
2011-09-16 15:36:31 -03:00
parent 665e82c97a
commit a8852341fc
19 changed files with 725 additions and 66 deletions

View File

@@ -0,0 +1,27 @@
# ---------------------------------------------------------------------------
# JDBCDatabaseService configuration
# ---------------------------------------------------------------------------
# Parameters in this file are used by JDBCDatabaseService.
# If you are not sure on the usage of any parameter, read the "Configuration"
# section in wiki article about "JDBCDatabaseService".
# https://github.com/l2jserver2/
# ---------------------------------------------------------------------------
# This defines the connection URL used by JDBC to connect to the database.
# Default: jdbc:mysql://localhost/l2jserver2
jdbc.url = jdbc:mysql://localhost/l2jserver2
# The driver used to connect to the database. Please note that the driver
# library must be available in the JVM classpath.
# Default: com.mysql.jdbc.Driver in MySQL binary distribution or
# org.h2.Driver in H2 binary distribution
jdbc.driver = com.mysql.jdbc.Driver
# The username used to login into the database.
# NOTE: Try not use "root" in production servers!
# Default: <your database username>
jdbc.username = l2j
# The password used to login into the database.
# Default: <your database password>
jdbc.password = changeme

View File

@@ -0,0 +1,13 @@
# ---------------------------------------------------------------------------
# XMLTemplateService configuration
# ---------------------------------------------------------------------------
# Parameters in this file are used by XMLTemplateService.
# If you are not sure on the usage of any parameter, read the "Configuration"
# section in wiki article about "XMLTemplateService".
# https://github.com/l2jserver2/
# ---------------------------------------------------------------------------
# The directory in which templates are located. All template files must be
# in .xml # file format. Must be relative to 'vfs.root' (vfs.properties)
# Default: data/templates
template.directory = data/templates

12
dist/config/properties/vfs.properties vendored Normal file
View File

@@ -0,0 +1,12 @@
# ---------------------------------------------------------------------------
# Java7VFSService configuration
# ---------------------------------------------------------------------------
# Parameters in this file are used by Java7VFSService.
# If you are not sure on the usage of any parameter, read the "Configuration"
# section in wiki article about "Java7VFSService".
# https://github.com/l2jserver2/
# ---------------------------------------------------------------------------
# The root of the VFS, any file placed in "/" will go to specified path.
# Defaul: <empty> (will inherit from terminal working directory, if any)
vfs.root =