Top Description Fields Constructors Methods
org.jvnet.hk2.internal

public Class PopulatorImpl

extends Object
implements Populator
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.Populator
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, java.util.LinkedList, .List, org.glassfish.hk2.api.ActiveDescriptor, .DescriptorFileFinder, .DescriptorFileFinderInformation, .DynamicConfiguration, .DynamicConfigurationService, .MultiException, .Populator, .PopulatorPostProcessor, .ServiceLocator, org.glassfish.hk2.utilities.ClasspathDescriptorFileFinder, .DescriptorImpl

Implementation of the Populator for DynamicConfigurationService
Author
jwells

Field Summary

Modifier and TypeField and Description
private final DynamicConfigurationService
private final ServiceLocator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<ActiveDescriptor<?>>
populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors)

Implements org.glassfish.hk2.api.Populator.populate.

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

public List<ActiveDescriptor<?>>
populate()

Implements org.glassfish.hk2.api.Populator.populate.

This method will populate the service locator using the system classloader to find the hk2-locator files from the default location of META-INF/hk2-locator/default.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dcsback to summary
private final DynamicConfigurationService dcs
serviceLocatorback to summary
private final ServiceLocator serviceLocator

Constructor Detail

PopulatorImplback to summary
pack-priv PopulatorImpl(ServiceLocator serviceLocator, DynamicConfigurationService dcs)

Method Detail

populateback to summary
public List<ActiveDescriptor<?>> populate(DescriptorFileFinder fileFinder, PopulatorPostProcessor... postProcessors) throws IOException

Implements org.glassfish.hk2.api.Populator.populate.

Doc from org.glassfish.hk2.api.Populator.populate.

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

Annotations
@Override
Exceptions
IOException:
In case of an error reading the input streams
populateback to summary
public List<ActiveDescriptor<?>> populate() throws IOException

Implements org.glassfish.hk2.api.Populator.populate.

Doc from org.glassfish.hk2.api.Populator.populate.

This method will populate the service locator using the system classloader to find the hk2-locator files from the default location of META-INF/hk2-locator/default. No post processing will be done on the descriptors added to the system

Annotations
@Override
Exceptions
IOException:
if there was an error reading any of the descriptors