|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.Lookup org.freehep.util.FreeHEPLookup
A simple lookup which allows adding and removing items. This is just a simple front-end to the netbeans lookup api. It provides the ability to lookup classes registered via the Sun service provider mechanism or registered directly with this class.
Nested Class Summary |
Nested classes inherited from class org.openide.util.Lookup |
org.openide.util.Lookup.Item, org.openide.util.Lookup.Provider, org.openide.util.Lookup.Result, org.openide.util.Lookup.Template |
Field Summary |
Fields inherited from class org.openide.util.Lookup |
EMPTY |
Method Summary | |
void |
add(Object instance)
Add an instance of an Object to the lookup. |
void |
add(Object instance,
String id)
Add an instance with an ID. |
void |
add(Object instance,
String[] ids)
Add an instance with multiple IDs. |
static FreeHEPLookup |
instance()
Access a singleton instance of FreeHEPLookup.ProxyLookup |
Object |
lookup(Class clazz)
|
org.openide.util.Lookup.Result |
lookup(org.openide.util.Lookup.Template template)
|
void |
remove(Object instance)
Remove an instance from the lookup |
void |
remove(Object instance,
String id)
Remove an instance with a specific ID. |
void |
remove(Object instance,
String[] ids)
Remove an instance with multiple IDs |
void |
setClassLoader(ClassLoader loader)
Sets the ClassLoader used for subsequent service API lookups |
Methods inherited from class org.openide.util.Lookup |
getDefault, lookupItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FreeHEPLookup instance()
public void add(Object instance)
instance
- The object to add.public void add(Object instance, String id)
instance
- The instance to add.id
- The ID associated with the instancepublic void add(Object instance, String[] ids)
instance
- The instance to add.ids
- The IDs associated with the instance.public void remove(Object instance)
instance
- The instance to removepublic void remove(Object instance, String id)
instance
- The instance to removeid
- The ID of the instancepublic void remove(Object instance, String[] ids)
instance
- The instance to removeids
- The IDs of the instancepublic void setClassLoader(ClassLoader loader)
loader
- The ClassLoader to use.public org.openide.util.Lookup.Result lookup(org.openide.util.Lookup.Template template)
public Object lookup(Class clazz)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |