Ohloh project report for domingo

Factory and Interfaces

Simmilar to the original Lotus Notes Java-API, domingo has a factory class that must be used to instantiate a concrete implementation of the domingo interface classes.

DNotesFactory factory = DNotesFactory.getInstance();

The factory instance can now be used to establish a session and to interact with the Lotus Notes Client or a Lotus Domino server. The following code creates a session to a Lotus Domino server and opens the database names.nsf on that server.

DSession session = factory.getSession("plato.acme", "username", "password");
DDatabase = database = session.getDatabase("", "names.nsf");

The following class diagram shows the main interfaces of the domingo API: