8.2. Creating a CoreService

Creating a CoreService is pretty easy. We only need to follow the same steps as when we are creating a Service only with one small difference. It is necessary to extend the inteface org.dbe.servent.tools.CoreAdapter.

This interface provides only one new method wich allows to store as a member variable the ServentContext. There is also a special kind of services named CoreServices. These services has total access to the servent Core functionalities as Deployer, Configuration, P2PRegisterer. Whit these CoreServices it is possible to make more powerful services. These special DBEServices are not explained here but we hope they will be finished in short.

org.dbe.servent.tools.CoreAdapter interface

public interface CoreAdapter extends Adapter {

    /**

    * Initializes the Adapter with the ServentContext. The "service provider"

    * can store this object

    *

    * @param context ServentContext

    */

    void init(ServentContext context);

}