edu.umk.mat.merdacz.JGServer.config
Class CfgBox

java.lang.Object
  extended byedu.umk.mat.merdacz.JGServer.config.CfgBox

public class CfgBox
extends java.lang.Object

Boxing class for cfg which must be passed to CfgLoader. We need to box beacuse CfgLoader fills the passed cfg

Author:
Marcin Daczkowski

Field Summary
(package private)  ServerCfg cfg
           
 
Constructor Summary
CfgBox()
          The default constructor implies using setCfg before processing configuration file.
CfgBox(ServerCfg cfg)
          Constructs boxing class and automaticly embeds given ServerCfg with it.
 
Method Summary
 ServerCfg getCfg()
           
 void setCfg(ServerCfg cfg)
          This method may be usefull when Server needs to be reloaded (in example when new plugin has been deployed)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cfg

ServerCfg cfg
Constructor Detail

CfgBox

public CfgBox()
The default constructor implies using setCfg before processing configuration file.


CfgBox

public CfgBox(ServerCfg cfg)
Constructs boxing class and automaticly embeds given ServerCfg with it.

Parameters:
cfg - configuration object to be embeded
Method Detail

getCfg

public ServerCfg getCfg()
Returns:
Embeded configuration object

setCfg

public void setCfg(ServerCfg cfg)
This method may be usefull when Server needs to be reloaded (in example when new plugin has been deployed)

Parameters:
cfg - configuation object to be emebeded