Package tigase.vhosts

Class VHostJDBCRepository

All Implemented Interfaces:
Iterable<VHostItem>, ComponentRepository<VHostItem>, ComponentRepositoryDataSourceAware<VHostItem,DataSource>, DataSourceAware<DataSource>, Repository, Initializable, UnregisterAware, VHostComponentRepository, VHostComponentRepositoryDataSourceAware<DataSource>

@ConfigAliases(@ConfigAlias(field="items",alias="virtual-hosts")) public class VHostJDBCRepository extends UserRepoRepository<VHostItem> implements VHostComponentRepositoryDataSourceAware<DataSource>
This implementation stores virtual domains in the UserRepository database. It loads initial settings and virtual hosts from the configuration file and then loads more vhosts from the database. Virtual domains from the database can overwrite (disable) vhosts loaded from the configuration file.
This implementation keeps all virtual hosts and their parameters in a single database field. This might not be very efficient if you want to manager big number of virtual domains. It is sufficient for hundreds of vhosts. If you need thousands of VHosts support I advice to implement this storage in more efficient way using separate database tables instead of UserRepository. Please note there is a limit of about 300 vhosts if you use Derby database.
Since:
Nov 29, 2008 2:32:48 PM
Author:
Artur Hefczyc
  • Constructor Details

    • VHostJDBCRepository

      public VHostJDBCRepository()
  • Method Details