QName type = property.getType(); LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent); LogicalProperty logicalProperty = builder.xmlValue(value).many(many).type(type).required(required).build(); logicalComponent.setProperties(logicalProperty);
QName type = property.getType(); LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent); LogicalProperty logicalProperty = builder.xmlValue(value).many(many).type(type).required(required).build(); logicalComponent.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); } }
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); } }
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); }
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); }