Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


5.3.1 init method

This method is invoked when a User Plugin EAR starts. When this method is invoked, the User Plugin initialization processing is performed.

For example, when you implement a User Plugin that performs database connection processing, use this method to perform data source lookup processing. For details about how to implement database connection processing, see 4.4 Adding database connection processing.

A data source lookup for connection with the database must be implemented within this method. If you implement the lookup with any other method, operation is unpredictable. To use the data source with the inputFromNode() method, or any other method, implement processing so that the data source instance found by the lookup in the init() method is retained in a static variable and passed.

Organization of this subsection

(1) Format

public void init() throws UCNPPluginUserException;

(2) Arguments

None

(3) Return values

None

(4) Exception

If an error occurs with this method, startup of the User Plugin is interrupted and the UCNPPluginUserException exception is thrown.