public class HK2Populator
extends java.lang.Object
Constructor and Description |
---|
HK2Populator() |
Modifier and Type | Method and Description |
---|---|
static void |
populate(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 java.util.List<ActiveDescriptor> |
populate(ServiceLocator serviceLocator,
DescriptorFileFinder fileFinder,
java.util.List<? extends 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(ServiceLocator serviceLocator) |
public static java.util.List<ActiveDescriptor> populate(ServiceLocator serviceLocator, DescriptorFileFinder fileFinder, java.util.List<? extends PopulatorPostProcessor> postProcessors) throws java.io.IOException
DescriptorImpl
writeObject method.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 serviceLocatorjava.io.IOException
- In case of an errorpublic static void populate(ServiceLocator serviceLocator) throws java.io.IOException
DescriptorImpl
writeObject method,
looking in the classpath to locate these filesserviceLocator
- The service locator to populate. May not be nulljava.io.IOException
- In case of an errorpublic static void populateConfig(ServiceLocator serviceLocator) throws BootException
BootException