Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.obinary.cms.beans
Class ConfigLoader  view ConfigLoader download ConfigLoader.java

java.lang.Object
  extended bycom.obinary.cms.beans.ConfigLoader

public class ConfigLoader
extends java.lang.Object

User: sameercharles Date: Apr 28, 2003 Time: 11:20:59 AM

Version:
1.0

Field Summary
private static java.lang.String CONFIG
           
static Repository configRepository
           
static Node configRoot
          start page under the configRepository
private static RepositoryFactory repositoryFactory
           
private static java.lang.String USER_ROLES
           
static Repository userRolesRepository
           
private static java.lang.String USERS
           
static Repository usersRepository
           
private static java.lang.String WEBSITE
           
static Repository websiteRepository
           
 
Constructor Summary
ConfigLoader()
          constructor
 
Method Summary
static Repository getUserRepository()
           
static void initConfigRepository()
          load config repository
static void initUserRolesRepository()
          load users repository
static void initUsersRepository()
          load users repository
static void initWebsiteRepository()
          load website repository
static void loadRepositories()
          load all available repositories
private  void printVersionInfo()
           
static void reload()
          reload all config info in the same objects created on the startup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG

private static final java.lang.String CONFIG
See Also:
Constant Field Values

WEBSITE

private static final java.lang.String WEBSITE
See Also:
Constant Field Values

USERS

private static final java.lang.String USERS
See Also:
Constant Field Values

USER_ROLES

private static final java.lang.String USER_ROLES
See Also:
Constant Field Values

repositoryFactory

private static RepositoryFactory repositoryFactory

configRepository

public static Repository configRepository

websiteRepository

public static Repository websiteRepository

usersRepository

public static Repository usersRepository

userRolesRepository

public static Repository userRolesRepository

configRoot

public static Node configRoot
start page under the configRepository

Constructor Detail

ConfigLoader

public ConfigLoader()
             throws RepositoryException
constructor

Method Detail

printVersionInfo

private void printVersionInfo()

reload

public static void reload()
                   throws RepositoryException

reload all config info in the same objects created on the startup


loadRepositories

public static void loadRepositories()
                             throws RepositoryException

load all available repositories


initConfigRepository

public static void initConfigRepository()
                                 throws RepositoryException

load config repository


initWebsiteRepository

public static void initWebsiteRepository()
                                  throws RepositoryException

load website repository


initUsersRepository

public static void initUsersRepository()
                                throws RepositoryException

load users repository


initUserRolesRepository

public static void initUserRolesRepository()
                                    throws RepositoryException

load users repository


getUserRepository

public static Repository getUserRepository()