|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.foundation.ConsensusFoundation
This is the main class of the ConsensusFoundation framework that initializes and provides easy access to all available modules.
To initialize the framework, create an instance of this class and pass a configuration file to the constructor (or use the default config file).
Field Summary | |
static String |
CF_DYNRIGHTS_KEY
The configuration key that defines the DynamicRightsManager (optional). |
static String |
CF_EVOLUTION_KEY
The configuration key that defines the EvolutionManager (optional). |
static String |
CF_EXPORT_KEY
The configuration key that defines the ExportHandlers (comma separated list) in addition to any default handlers (optional). |
static String |
CF_IMPORT_KEY
The configuration key that defines the ImportHandlers (comma separated list) in addition to any default handlers (optional). |
static String |
CF_INCENTIVE_KEY
The configuration key that defines the IncentiveManager (optional). |
static String |
CF_LOGGING_KEY
The configuration key that defines the LoggingManager. |
static String |
CF_LOGLEVEL_KEY
The configuration key that defines the loglevel (optional). |
static String |
CF_ONTOLOGY_KEY
The configuration key that defines the OntologyManager. |
static String |
CF_PROPERTIES
If no config file name is passed to the constructor and a file with this name is found on the classpath, it is used as the configuration properties file. |
static String |
CF_QUERY_KEY
The configuration key that defines the QueryEngine if an implementation other than the default one shall be used (optional). |
static String |
CF_RATING_KEY
The configuration key that defines the RatingManager (optional). |
static String |
CF_SCORING_KEY
The configuration key that defines the ScoringListeners as a comma separated list (optional). |
static String |
CF_SUPERADMIN_KEY
The value of this property key names the user that is granted the superadmin role on login, regardless what roles the UserManager assigns to the user. |
static String |
CF_USER_KEY
The configuration key that defines the UserManager. |
Constructor Summary | |
ConsensusFoundation()
Initializes the framework and its components with the configuration file defined by CF_PROPERTIES . |
|
ConsensusFoundation(Properties config)
Initializes the framework and its components with the given Properties object. |
|
ConsensusFoundation(String configFile)
Initializes the framework and its components with the given configuration file. |
Method Summary | |
protected void |
finalize()
Calls shutdown() if the application forgot to do so. |
DynamicRightsManager |
getDynamicRightsManager()
Returns a reference to the DynamicRightsManager. |
EvolutionManager |
getEvolutionManager()
Returns a reference to the EvolutionManager. |
IncentiveManager |
getIncentiveManager()
Returns a reference to the IncentiveManager. |
LoggingManager |
getLoggingManager()
Returns a reference to the LoggingManager. |
OntologyManager |
getOntologyManager()
Returns a reference to the OntologyManager. |
RatingManager |
getRatingManager()
Returns a reference to the RatingManager. |
UserManager |
getUserManager()
Returns a reference to the UserManager. |
String |
getVersion()
Returns a version string of the implementation of the ConsensusFoundation framework. |
protected void |
init(Properties config)
Called by the constructor before the modules are instantiated and their init() method is called. |
protected void |
initCompleted(Properties config)
Called by the constructor after the init() method of all available modules has been called,
but before their initCompleted() method is called. |
void |
shutdown()
An application must call this method to shut down the framework and its components. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CF_PROPERTIES
public static final String CF_SUPERADMIN_KEY
public static final String CF_LOGGING_KEY
LoggingManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_USER_KEY
UserManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_ONTOLOGY_KEY
OntologyManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_EVOLUTION_KEY
EvolutionManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_RATING_KEY
RatingManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_INCENTIVE_KEY
IncentiveManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_DYNRIGHTS_KEY
DynamicRightsManager
,
CF_PROPERTIES
,
Constant Field Valuespublic static final String CF_SCORING_KEY
ScoringListener
,
Constant Field Valuespublic static final String CF_QUERY_KEY
QueryEngine
,
Constant Field Valuespublic static final String CF_EXPORT_KEY
ExportHandler
,
Constant Field Valuespublic static final String CF_IMPORT_KEY
ImportHandler
,
Constant Field Valuespublic static final String CF_LOGLEVEL_KEY
LoggingManager
,
Constant Field ValuesConstructor Detail |
public ConsensusFoundation() throws Exception
CF_PROPERTIES
.
Exception
- if an error occurred before the framework was initialized completelyCF_PROPERTIES
public ConsensusFoundation(Properties config) throws Exception
config
- the Properties object containing the configuration keys
Exception
- if an error occurred before the framework was initialized completelypublic ConsensusFoundation(String configFile) throws Exception
configFile
- the properties file containing the configuration keys
Exception
- if an error occurred before the framework was initialized completelyMethod Detail |
protected void init(Properties config) throws Exception
init()
method is called.
config
- all entries from ConsensusFoundation.properties
Exception
- if any error occurs (startup of the application is aborted in this case)ConsensusFoundation()
protected void initCompleted(Properties config) throws Exception
init()
method of all available modules has been called,
but before their initCompleted()
method is called.
config
- all entries from ConsensusFoundation.properties
Exception
- if any error occurs (startup of the application is aborted in this case)public LoggingManager getLoggingManager()
ConsensusFoundationManager
getLoggingManager
in interface ConsensusFoundationManager
null
after successful startuppublic UserManager getUserManager()
ConsensusFoundationManager
getUserManager
in interface ConsensusFoundationManager
null
after successful startuppublic OntologyManager getOntologyManager()
ConsensusFoundationManager
getOntologyManager
in interface ConsensusFoundationManager
null
after successful startuppublic EvolutionManager getEvolutionManager()
ConsensusFoundationManager
getEvolutionManager
in interface ConsensusFoundationManager
null
if an EvolutionManager is not availablepublic IncentiveManager getIncentiveManager()
ConsensusFoundationManager
getIncentiveManager
in interface ConsensusFoundationManager
null
if an IncentiveManager is not availablepublic RatingManager getRatingManager()
ConsensusFoundationManager
getRatingManager
in interface ConsensusFoundationManager
null
if a RatingManager is not availablepublic DynamicRightsManager getDynamicRightsManager()
ConsensusFoundationManager
getDynamicRightsManager
in interface ConsensusFoundationManager
null
if a DynamicRightsManager is not availablepublic void shutdown()
shutdown()
method of each module.
ConsensusFoundationModule.shutdown()
protected void finalize() throws Throwable
shutdown()
if the application forgot to do so.
Throwable
shutdown()
public String getVersion()
ConsensusFoundationManager
getVersion
in interface ConsensusFoundationManager
getVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |