org.openide.modules 7.32.1

org.openide.modules
Annotation Type OnStart


@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface OnStart

An annotation to place on a Runnable with public default constructor that you wish to be instantiated and invoked on start of your module. Runnables defined by various modules are invoked in parallel and as soon as possible. It is guaranteed that execution of all runnables is finished before the startup sequence is claimed over.

Typical initialization code follows:

 @OnStart
 public class InitializeMe implements Runnable {
     public void run() {
       // invoke initialization code
     }
 }
 
Some modules may want to invoke code when the UI is initialized. In such case consider using @OnShowing annotation.

Since:
7.29


org.openide.modules 7.32.1

Built on July 17 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.