Documentation of 'org.freehep.util.FreeHEPLookup' Java class
FreeHEPLookup
org.freehep.util

Class FreeHEPLookup



  • public class FreeHEPLookup
    extends org.openide.util.Lookup
    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.
    See Also:
    The Netbeans Lookup API, The service provider mechanism
    • Nested Class Summary

      • Nested classes/interfaces 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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.Object instance)
      Add an instance of an Object to the lookup.
      void add(java.lang.Object instance, java.lang.String id)
      Add an instance with an ID.
      void add(java.lang.Object instance, java.lang.String[] ids)
      Add an instance with multiple IDs.
      static FreeHEPLookup instance()
      Access a singleton instance of FreeHEPLookup.ProxyLookup
      java.lang.Object lookup(java.lang.Class clazz) 
      org.openide.util.Lookup.Result lookup(org.openide.util.Lookup.Template template) 
      void remove(java.lang.Object instance)
      Remove an instance from the lookup
      void remove(java.lang.Object instance, java.lang.String id)
      Remove an instance with a specific ID.
      void remove(java.lang.Object instance, java.lang.String[] ids)
      Remove an instance with multiple IDs
      void setClassLoader(java.lang.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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 remove
        id - 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 remove
        ids - 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:
        lookup in class org.openide.util.Lookup
      • lookup

        public java.lang.Object lookup(java.lang.Class clazz)
        Specified by:
        lookup in class org.openide.util.Lookup

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.