public void bootSystem() throws InitializationException { try { // load the system composite Composite composite = BootstrapCompositeFactory.createSystemComposite(systemCompositeUrl, bootContribution, bootClassLoader, implementationProcessor); // create the property and merge it into the composite LogicalProperty logicalProperty = new LogicalProperty("systemConfig", systemConfig, false, domain); domain.setProperties(logicalProperty); // deploy the composite to the runtime domain runtimeDomain.include(composite, false); } catch (DeploymentException e) { throw new InitializationException(e); } }
public void bootSystem() throws Fabric3Exception { // load the system composite Composite composite = BootstrapCompositeFactory.createSystemComposite(bootContribution, hostInfo, bootClassLoader, implementationIntrospector); // create the property and merge it into the composite LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder("systemConfig", domain).xmlValue(systemConfig).many(false).build(); domain.setProperties(logicalProperty); // deploy the composite to the runtime domain runtimeDomain.include(composite); }
private void includeProperties(Composite composite, LogicalCompositeComponent domain, InstantiationContext context) { for (Property property : composite.getProperties().values()) { String name = property.getName(); if (domain.getAllProperties().containsKey(name)) { DuplicateProperty error = new DuplicateProperty(name, domain); context.addError(error); } else { Document value = property.getDefaultValue(); boolean many = property.isMany(); QName type = property.getType(); LogicalProperty logicalProperty = new LogicalProperty(name, value, many, type, domain); domain.setProperties(logicalProperty); } } }
public void bootSystem() throws Fabric3Exception { // load the system composite Composite composite = BootstrapCompositeFactory.createSystemComposite(bootContribution, hostInfo, bootClassLoader, implementationIntrospector); // create the property and merge it into the composite LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder("systemConfig", domain).xmlValue(systemConfig).many(false).build(); domain.setProperties(logicalProperty); // deploy the composite to the runtime domain runtimeDomain.include(composite); }
private void includeProperty(Property property, LogicalCompositeComponent domain, InstantiationContext context) { String name = property.getName(); if (domain.getAllProperties().containsKey(name)) { DuplicateProperty error = new DuplicateProperty(name, domain); context.addError(error); } else { Document value = property.getDefaultValue(); boolean many = property.isMany(); QName type = property.getType(); LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder(name, domain).xmlValue(value).many(many).type(type).build(); domain.setProperties(logicalProperty); } }
private void includeProperty(Property property, LogicalCompositeComponent domain, InstantiationContext context) { String name = property.getName(); if (domain.getAllProperties().containsKey(name)) { DuplicateProperty error = new DuplicateProperty(name, domain); context.addError(error); } else { Document value = property.getDefaultValue(); boolean many = property.isMany(); QName type = property.getType(); LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder(name, domain).xmlValue(value).many(many).type(type).build(); domain.setProperties(logicalProperty); } }