tigase.osgi
Class ModulesManagerImpl

java.lang.Object
  extended by tigase.osgi.ModulesManagerImpl
All Implemented Interfaces:
ModulesManager

public class ModulesManagerImpl
extends Object
implements ModulesManager

Author:
andrzej

Method Summary
static ModulesManagerImpl getInstance()
           
 XMPPImplIfc getPlugin(String plug_id)
           
 ServerComponent getServerComponent(String className)
           
 Class<? extends ServerComponent> getServerComponentClass(String className)
           
 boolean hasClassForServerComponent(String className)
           
 boolean hasPluginForId(String plug_id)
           
 void registerPluginClass(Class<? extends XMPPImplIfc> pluginCls)
           
 void registerServerComponentClass(Class<? extends Configurable> compCls)
           
 void setActive(boolean active)
           
 void unregisterPluginClass(Class<? extends XMPPImplIfc> pluginClass)
           
 void unregisterServerComponentClass(Class<? extends Configurable> compCls)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ModulesManagerImpl getInstance()

registerPluginClass

public void registerPluginClass(Class<? extends XMPPImplIfc> pluginCls)
Specified by:
registerPluginClass in interface ModulesManager

unregisterPluginClass

public void unregisterPluginClass(Class<? extends XMPPImplIfc> pluginClass)
Specified by:
unregisterPluginClass in interface ModulesManager

registerServerComponentClass

public void registerServerComponentClass(Class<? extends Configurable> compCls)
Specified by:
registerServerComponentClass in interface ModulesManager

unregisterServerComponentClass

public void unregisterServerComponentClass(Class<? extends Configurable> compCls)
Specified by:
unregisterServerComponentClass in interface ModulesManager

update

public void update()
Specified by:
update in interface ModulesManager

getPlugin

public XMPPImplIfc getPlugin(String plug_id)
                      throws InstantiationException,
                             IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

hasPluginForId

public boolean hasPluginForId(String plug_id)

getServerComponentClass

public Class<? extends ServerComponent> getServerComponentClass(String className)

getServerComponent

public ServerComponent getServerComponent(String className)
                                   throws InstantiationException,
                                          IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

hasClassForServerComponent

public boolean hasClassForServerComponent(String className)

setActive

public void setActive(boolean active)


Copyright © 2013 Tigase. All rights reserved.