private InstantiationContext include(LogicalCompositeComponent domain, Composite composite, boolean synthetic) { InstantiationContext context = new InstantiationContext(); // merge the property values into the parent includeProperties(composite, domain, context); // merge resources includeResources(composite, domain, synthetic); // instantiate all the components in the composite and add them to the parent instantiate(composite, domain, synthetic, context); // resolve services and references - evaluate all references since reinjection may apply if (domain.isAutowire()) { for (LogicalComponent<?> component : domain.getComponents()) { autowireInstantiator.instantiate(component, context); } } return context; }
private InstantiationContext include(LogicalCompositeComponent domain, Composite composite, boolean synthetic) { InstantiationContext context = new InstantiationContext(); // merge the property values into the parent includeProperties(composite, domain, context); // merge resources includeResources(composite, domain, synthetic); // instantiate all the components in the composite and add them to the parent instantiate(composite, domain, synthetic, context); // resolve services and references - evaluate all references since reinjection may apply if (domain.isAutowire()) { for (LogicalComponent<?> component : domain.getComponents()) { autowireInstantiator.instantiate(component, context); } } return context; }