org.netbeans.core.startup/1 1.40

org.netbeans.core.startup
Class MainLookup

java.lang.Object
  extended by org.openide.util.Lookup
      extended by org.openide.util.lookup.ProxyLookup
          extended by org.netbeans.core.startup.MainLookup

public final class MainLookup
extends ProxyLookup

The default lookup for the system.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.util.Lookup
Lookup.Item<T>, Lookup.Provider, Lookup.Result<T>, Lookup.Template<T>
 
Field Summary
 
Fields inherited from class org.openide.util.Lookup
EMPTY
 
Constructor Summary
MainLookup()
           
 
Method Summary
protected  void beforeLookup(Lookup.Template templ)
           
static void moduleClassLoadersUp()
          Called when modules are about to be turned on.
static void moduleLookupReady(Lookup moduleLookup)
          Called when Lookup is ready from the ModuleManager.
static void modulesClassPathInitialized()
          When all module classes are accessible thru systemClassLoader, this method is called to initialize the FolderLookup.
static void register(Object obj)
          Register new instance.
static
<T,R> void
register(T obj, InstanceContent.Convertor<T,R> conv)
          Register new instance.
static void started()
          GuiRunLevel has started up.
static void systemClassLoaderChanged(ClassLoader nue)
          Called when a system classloader changes.
static void unregister(Object obj)
          Unregisters the service.
static
<T,R> void
unregister(T obj, InstanceContent.Convertor<T,R> conv)
          Unregisters the service registered with a convertor.
static Task warmUp(long delay)
          Schedule all Runnable in WarmUp folder for invocation.
 
Methods inherited from class org.openide.util.lookup.ProxyLookup
getLookups, lookup, lookup, lookupItem, setLookups, setLookups, toString
 
Methods inherited from class org.openide.util.Lookup
getDefault, lookupAll, lookupResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MainLookup

public MainLookup()
Method Detail

started

public static void started()
GuiRunLevel has started up. That means that subsequent calls to lookup on ModuleInfo need not try to get it again.


warmUp

public static Task warmUp(long delay)
Schedule all Runnable in WarmUp folder for invocation.

Parameters:
delay - time in ms to wait with warmup
Returns:
task one can wait for
Since:
1.30

systemClassLoaderChanged

public static final void systemClassLoaderChanged(ClassLoader nue)
Called when a system classloader changes.


moduleClassLoadersUp

public static final void moduleClassLoadersUp()
Called when modules are about to be turned on.


moduleLookupReady

public static final void moduleLookupReady(Lookup moduleLookup)
Called when Lookup is ready from the ModuleManager.

See Also:
"#28465"

modulesClassPathInitialized

public static final void modulesClassPathInitialized()
When all module classes are accessible thru systemClassLoader, this method is called to initialize the FolderLookup.


register

public static void register(Object obj)
Register new instance.


register

public static <T,R> void register(T obj,
                                  InstanceContent.Convertor<T,R> conv)
Register new instance.

Parameters:
obj - source
conv - convertor which postponing an instantiation

unregister

public static void unregister(Object obj)
Unregisters the service.


unregister

public static <T,R> void unregister(T obj,
                                    InstanceContent.Convertor<T,R> conv)
Unregisters the service registered with a convertor.


beforeLookup

protected void beforeLookup(Lookup.Template templ)
Overrides:
beforeLookup in class ProxyLookup

org.netbeans.core.startup/1 1.40

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.