org.freehep.util
Class FreeHEPLookup
- java.lang.Object
-
- org.openide.util.Lookup
-
- org.freehep.util.FreeHEPLookup
-
public class FreeHEPLookup extends org.openide.util.LookupA 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.Object instance)Add an instance of an Object to the lookup.voidadd(java.lang.Object instance, java.lang.String id)Add an instance with an ID.voidadd(java.lang.Object instance, java.lang.String[] ids)Add an instance with multiple IDs.static FreeHEPLookupinstance()Access a singleton instance of FreeHEPLookup.ProxyLookupjava.lang.Objectlookup(java.lang.Class clazz)org.openide.util.Lookup.Resultlookup(org.openide.util.Lookup.Template template)voidremove(java.lang.Object instance)Remove an instance from the lookupvoidremove(java.lang.Object instance, java.lang.String id)Remove an instance with a specific ID.voidremove(java.lang.Object instance, java.lang.String[] ids)Remove an instance with multiple IDsvoidsetClassLoader(java.lang.ClassLoader loader)Sets the ClassLoader used for subsequent service API lookups
-
-
-
Method Detail
-
instance
public static FreeHEPLookup instance()
Access a singleton instance of FreeHEPLookup.ProxyLookup- Returns:
- The singleton instance of FreeHEPLookup
-
add
public void add(java.lang.Object instance)
Add an instance of an Object to the lookup.- Parameters:
instance- The object to add.
-
add
public void add(java.lang.Object instance, java.lang.String id)Add an instance with an ID.- Parameters:
instance- The instance to add.id- The ID associated with the instance
-
add
public void add(java.lang.Object instance, java.lang.String[] ids)Add an instance with multiple IDs.- Parameters:
instance- The instance to add.ids- The IDs associated with the instance.
-
remove
public void remove(java.lang.Object instance)
Remove an instance from the lookup- Parameters:
instance- The instance to remove
-
remove
public void remove(java.lang.Object instance, java.lang.String id)Remove an instance with a specific ID.- Parameters:
instance- The instance to removeid- The ID of the instance
-
remove
public void remove(java.lang.Object instance, java.lang.String[] ids)Remove an instance with multiple IDs- Parameters:
instance- The instance to removeids- The IDs of the instance
-
setClassLoader
public void setClassLoader(java.lang.ClassLoader loader)
Sets the ClassLoader used for subsequent service API lookups- Parameters:
loader- The ClassLoader to use.
-
lookup
public org.openide.util.Lookup.Result lookup(org.openide.util.Lookup.Template template)
- Specified by:
lookupin classorg.openide.util.Lookup
-
lookup
public java.lang.Object lookup(java.lang.Class clazz)
- Specified by:
lookupin classorg.openide.util.Lookup
-
-
DMelt 3.0 © DataMelt by jWork.ORG