[RSS]

Embedded Browser SPI

This document described the SPI which is needed to be implemented by modules providing specific browser implementation to be available in the NB.

Description of the SPI and Use Cases

There will be only one specific SPI interface, but that will lead to implemenation also of the API embedded browser interface. The interface will be named BrowserProvider and it will have two methods:
public BrowserType getBrowserType();
Defining which type of browser is to be embedded.
public Browser createBrowser();
Factory method creating the embedded browser component.

Summary of the SPI in a table:

BrowserProvider interface
Method Names Purpose of the Method
public BrowserType getBrowserType() Provides what browser type this provider represents, firefox, ie, etc.
public Browser createBrowser() Factory method creating and instance of the browser component.