Top Constructors Methods
org.glassfish.hk2.bootstrap

public Class HK2Populator

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.LinkedList, .List, org.glassfish.hk2.api.ActiveDescriptor, .DescriptorFileFinder, .DynamicConfigurationService, .Populator, .PopulatorPostProcessor, .ServiceLocator, org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder, .DescriptorImpl, com.sun.enterprise.module.bootstrap.BootException

Author
jwells, [email protected]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<ActiveDescriptor<T>>
populate(final ServiceLocator
The service locator to populate. May not be null.
serviceLocator
,
DescriptorFileFinder
An object that finds files in the environment. May not be null.
fileFinder
,
List<? extends PopulatorPostProcessor>
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
postProcessors
)

This method can be used to populate the service locator with files that have been written out using the DescriptorImpl writeObject method.

public static void
populate(final ServiceLocator
The service locator to populate. May not be null
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

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HK2Populatorback to summary
public HK2Populator()

Method Detail

populateback to summary
public static List<ActiveDescriptor<T>> populate(final ServiceLocator serviceLocator, DescriptorFileFinder fileFinder, List<? extends 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:ServiceLocator

The service locator to populate. May not be null.

fileFinder:DescriptorFileFinder

An object that finds files in the environment. May not be null.

postProcessors:List<? extends PopulatorPostProcessor>

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

Exceptions
IOException:
In case of an error
populateback to summary
public static void populate(final 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:ServiceLocator

The service locator to populate. May not be null

Exceptions
IOException:
In case of an error
populateConfigback to summary
public static void populateConfig(ServiceLocator serviceLocator) throws BootException