public class InjectorFactoryImpl extends java.lang.Object implements InjectorFactory
| Constructor and Description |
|---|
InjectorFactoryImpl(org.fabric3.implementation.pojo.spi.reflection.ReflectionFactory reflectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
createInjectorMappings(java.util.Map<java.lang.String,java.util.List<org.fabric3.spi.container.objectfactory.Injector<?>>> injectors,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.fabric3.api.model.type.java.InjectionSite>> siteMappings,
java.util.Map<java.lang.String,org.fabric3.spi.container.objectfactory.ObjectFactory<?>> factories,
java.lang.ClassLoader classLoader)
Populates a map of Injectors for each injectable artifact (servlet, filter, servlet context or session context) in the web application.
|
public InjectorFactoryImpl(org.fabric3.implementation.pojo.spi.reflection.ReflectionFactory reflectionFactory)
public void createInjectorMappings(java.util.Map<java.lang.String,java.util.List<org.fabric3.spi.container.objectfactory.Injector<?>>> injectors,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.fabric3.api.model.type.java.InjectionSite>> siteMappings,
java.util.Map<java.lang.String,org.fabric3.spi.container.objectfactory.ObjectFactory<?>> factories,
java.lang.ClassLoader classLoader)
throws InjectionCreationException
InjectorFactorycreateInjectorMappings in interface InjectorFactoryinjectors - the map to populate, keyed by artifact id (e.g. servlet class name)siteMappings - a map keyed by site name (e.g. a reference or property name). The value is a map keyed by injectable artifact id with a
value containing a description of the injection site. For example, a reference may be injected on fields of multiple
servlets. This would be represented by an entry keyed on reference name with a value of a map keyed by servlet class name
and values containing injection site descriptions of the servlet fields.factories - the object factories that supply injected values.classLoader - the classloader to load classes in for the web applicationInjectionCreationException - if an error occurs creating the injectors.