|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.server.BasicComponent
tigase.server.AbstractComponentRegistrator<Configurable>
tigase.conf.ConfiguratorAbstract
public abstract class ConfiguratorAbstract
Created: Dec 7, 2009 4:15:31 PM
Field Summary | |
---|---|
static String |
CONFIG_REPO_CLASS_INIT_KEY
Field description |
static String |
CONFIG_REPO_CLASS_PROP_KEY
Field description |
static String |
logManagerConfiguration
Field description |
static String |
PROPERTY_FILENAME_PROP_KEY
Field description |
Fields inherited from class tigase.server.AbstractComponentRegistrator |
---|
components |
Fields inherited from class tigase.server.BasicComponent |
---|
admins, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
Fields inherited from interface tigase.disco.XMPPService |
---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
Constructor Summary | |
---|---|
ConfiguratorAbstract()
|
Method Summary | |
---|---|
void |
componentAdded(Configurable component)
Method description |
void |
componentRemoved(Configurable component)
Method description |
Map<String,Object> |
getDefaults(Map<String,Object> params)
Returns defualt configuration settings in case if there is no config file. |
Map<String,Object> |
getDefConfigParams()
Method description |
String |
getMessageRouterClassName()
Method description |
static Object |
getMXBean(String objName)
Method description |
Map<String,Object> |
getProperties(String nodeId)
Method description |
void |
init(String[] args)
Method description |
void |
initBindings(javax.script.Bindings binds)
Method description |
void |
initializationCompleted()
Method description |
boolean |
isCorrectType(ServerComponent component)
Method description |
static void |
loadLogManagerConfig(String config)
Method description |
void |
parseArgs(String[] args)
Method description |
static void |
putMXBean(String objName,
Object bean)
Method description |
void |
putProperties(String compId,
Map<String,Object> props)
Method description |
void |
setProperties(Map<String,Object> props)
Sets all configuration properties for object. |
void |
setup(Configurable component)
Method description |
Methods inherited from class tigase.server.AbstractComponentRegistrator |
---|
addComponent, deleteComponent, getComponent, newPacketId, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface tigase.server.ServerComponent |
---|
getComponentId, getName, processPacket, setName |
Field Detail |
---|
public static final String CONFIG_REPO_CLASS_INIT_KEY
public static final String CONFIG_REPO_CLASS_PROP_KEY
public static final String PROPERTY_FILENAME_PROP_KEY
public static String logManagerConfiguration
Constructor Detail |
---|
public ConfiguratorAbstract()
Method Detail |
---|
public static Object getMXBean(String objName)
objName
-
public static void loadLogManagerConfig(String config)
config
- public static void putMXBean(String objName, Object bean)
objName
- bean
- public void componentAdded(Configurable component)
componentAdded
in class AbstractComponentRegistrator<Configurable>
component
- public void componentRemoved(Configurable component)
componentRemoved
in class AbstractComponentRegistrator<Configurable>
component
- public Map<String,Object> getDefConfigParams()
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults
in interface Configurable
getDefaults
in class BasicComponent
params
-
public String getMessageRouterClassName()
public Map<String,Object> getProperties(String nodeId) throws ConfigurationException
nodeId
-
ConfigurationException
public void init(String[] args) throws ConfigurationException, TigaseDBException
args
-
ConfigurationException
TigaseDBException
public void initBindings(javax.script.Bindings binds)
initBindings
in class BasicComponent
binds
- public void initializationCompleted()
initializationCompleted
in interface ServerComponent
initializationCompleted
in class BasicComponent
public boolean isCorrectType(ServerComponent component)
isCorrectType
in class AbstractComponentRegistrator<Configurable>
component
-
public void parseArgs(String[] args)
args
- public void putProperties(String compId, Map<String,Object> props) throws ConfigurationException
compId
- props
-
ConfigurationException
public void setProperties(Map<String,Object> props)
setProperties
in interface Configurable
setProperties
in class BasicComponent
props
- public void setup(Configurable component)
component
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |