private Components(Builder builder, boolean throwIfUninitialized) { if (throwIfUninitialized && ! builder.__uninitialized.isEmpty()) throw new IllegalArgumentException("The following builder parameters for " + "chains.components[] must be initialized: " + builder.__uninitialized); id = (builder.id == null) ? new StringNode() : new StringNode(builder.id); dependencies = new Dependencies(builder.dependencies, throwIfUninitialized); }
public Dependencies build() { return new Dependencies(this); }
private static ChainedComponentModel createChainedComponentModel(ChainsConfig.Components component) { return new ChainedComponentModel( new BundleInstantiationSpecification(new ComponentSpecification(component.id()), null, null), createDependencies( component.dependencies().provides(), component.dependencies().before(), component.dependencies().after()), null); }