The ServentContext is an interface that allows the user to get some configuration parameters used during the servent StartUP and some components used by the servent to deploy/undeploy services, register/unregister proxies...
org.dbe.servent.ServentContext definition
/**
* Context of the Servent application. With the context we
* can access to the Logger, the ServentConfiguration, ...
*
*/
public class ServentContext {
public ServentConfiguration getConfig() ;
public void setConfig(ServentConfiguration config) ;
public ServiceWrapperRepository getRepository() ;
public ServiceWrapperRepository getServiceFilterRepository();
public void setRepository(ServiceWrapperRepository repository);
public void setServiceFilterRepository(ServiceWrapperRepository repository);
public Deployer getDeployer() ;
public void setDeployer(Deployer deployer) { this.deployer = deployer; }
public ClassLoader getCommonClassLoader ();
public void setCommonClassLoader (ClassLoader common)
public void setHttpServer(ServentServer server)
public ServentServer getHttpServer()
public void setConnectionManager(ConnectionManager connectionManager);
public ConnectionManager getConnectionManager() ;
public void setPublicHandler(ServentHandler handler) ;
public ServentHandler getPublicHandler() ;
public P2PDirectory getDirectory();
public void setDirectory(P2PDirectory directory);
}