EmbeddedBrowserSPI

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.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo