Class HK2Populator

java.lang.Object
org.glassfish.hk2.bootstrap.HK2Populator

public class HK2Populator extends Object
Author:
jwells, mason.taube@oracle.com
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    populate(org.glassfish.hk2.api.ServiceLocator serviceLocator)
    This method can be used to populate the service locator with files that have been written out using the DescriptorImpl writeObject method, looking in the classpath to locate these files
    static List<org.glassfish.hk2.api.ActiveDescriptor>
    populate(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.hk2.api.DescriptorFileFinder fileFinder, List<? extends org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors)
    This method can be used to populate the service locator with files that have been written out using the DescriptorImpl writeObject method.
    static void
    populateConfig(org.glassfish.hk2.api.ServiceLocator serviceLocator)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HK2Populator

      public HK2Populator()
  • Method Details

    • populate

      public static List<org.glassfish.hk2.api.ActiveDescriptor> populate(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.hk2.api.DescriptorFileFinder fileFinder, List<? extends org.glassfish.hk2.api.PopulatorPostProcessor> postProcessors) throws IOException
      This method can be used to populate the service locator with files that have been written out using the DescriptorImpl writeObject method.
      Parameters:
      serviceLocator - The service locator to populate. May not be null.
      fileFinder - An object that finds files in the environment. May not be null.
      postProcessors - A post-processor that allows the environment to modify the set of descriptors that are added to the system. May be null, in which case the descriptors read in are those that are used to populate the serviceLocator
      Throws:
      IOException - In case of an error
    • populate

      public static void populate(org.glassfish.hk2.api.ServiceLocator serviceLocator) throws IOException
      This method can be used to populate the service locator with files that have been written out using the DescriptorImpl writeObject method, looking in the classpath to locate these files
      Parameters:
      serviceLocator - The service locator to populate. May not be null
      Throws:
      IOException - In case of an error
    • populateConfig

      public static void populateConfig(org.glassfish.hk2.api.ServiceLocator serviceLocator) throws BootException
      Throws:
      BootException