protected void finished() { if (isValidXML() && iuIdentity != null && propertiesHandler != null) { iusPropertiesMap.put(iuIdentity, propertiesHandler.getProperties()); } }
@Override protected void finished() { if (isValidXML() && iuIdentity != null && propertiesHandler != null) { iusPropertiesMap.put(iuIdentity, propertiesHandler.getProperties()); } }
protected void finished() { if (isValidXML()) { state.Properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); state.Units = (unitsHandler == null ? new IInstallableUnit[0] // : unitsHandler.getUnits()); state.Repositories = repositoryReferencesHandler == null ? new IRepositoryReference[0] : repositoryReferencesHandler.getReferences(); Object repositoryObject = null; //can't create repository if missing type - this is already logged when parsing attributes if (state.Type == null) return; try { Class<?> clazz = Class.forName(state.Type); Constructor<?> ctor = clazz.getConstructor(IProvisioningAgent.class); repositoryObject = ctor.newInstance(agent); } catch (Exception e) { // TODO: Throw a SAXException e.printStackTrace(); } if (repositoryObject instanceof AbstractMetadataRepository) { repository = (AbstractMetadataRepository) repositoryObject; repository.initialize(state); } } } }
currentUnit.setVersion(version); currentUnit.setSingleton(singleton); OrderedProperties properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); String updateFrom = null; VersionRange updateRange = null;
currentUnit.setVersion(version); currentUnit.setSingleton(singleton); OrderedProperties properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); String updateFrom = null; VersionRange updateRange = null;
currentUnit.setVersion(version); currentUnit.setSingleton(singleton); OrderedProperties properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); String updateFrom = null; VersionRange updateRange = null;
protected void finished() { if (isValidXML()) { state.Properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); state.Units = (unitsHandler == null ? new IInstallableUnit[0] // : unitsHandler.getUnits()); state.Repositories = repositoryReferencesHandler == null ? new IRepositoryReference[0] : repositoryReferencesHandler.getReferences(); Object repositoryObject = null; //can't create repository if missing type - this is already logged when parsing attributes if (state.Type == null) return; try { Class<?> clazz = Class.forName(state.Type); Constructor<?> ctor = clazz.getConstructor(IProvisioningAgent.class); repositoryObject = ctor.newInstance(agent); } catch (Exception e) { // TODO: Throw a SAXException e.printStackTrace(); } if (repositoryObject instanceof AbstractMetadataRepository) { repository = (AbstractMetadataRepository) repositoryObject; repository.initialize(state); } } } }
protected void finished() { if (isValidXML()) { state.Properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); state.Units = (unitsHandler == null ? new IInstallableUnit[0] // : unitsHandler.getUnits()); state.Repositories = repositoryReferencesHandler == null ? new IRepositoryReference[0] : repositoryReferencesHandler.getReferences(); Object repositoryObject = null; //can't create repository if missing type - this is already logged when parsing attributes if (state.Type == null) return; try { Class<?> clazz = Class.forName(state.Type); Constructor<?> ctor = clazz.getConstructor(IProvisioningAgent.class); repositoryObject = ctor.newInstance(agent); } catch (Exception e) { // TODO: Throw a SAXException e.printStackTrace(); } if (repositoryObject instanceof AbstractMetadataRepository) { repository = (AbstractMetadataRepository) repositoryObject; repository.initialize(state); } } } }
@Override protected void finished() { if (isValidXML()) { String[][] mappingRules = (mappingRulesHandler == null ? new String[0][0] // : mappingRulesHandler.getMappingRules()); Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); Set<SimpleArtifactDescriptor> artifacts = (artifactsHandler == null ? new HashSet<>(0) // : artifactsHandler.getArtifacts()); repository = new SimpleArtifactRepository(agent, attrValues[0], attrValues[1], attrValues[2], attrValues[3], // attrValues[4], artifacts, mappingRules, properties); } } }
protected void finished() { if (isValidXML()) { state = new CompositeRepositoryState(); state.setName(attrValues[0]); state.setType(attrValues[1]); state.setVersion(attrValues[2]); state.setDescription(attrValues[3]); state.setProvider(attrValues[4]); state.setProperties((propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties())); state.setChildren((childrenHandler == null ? new URI[0] // : childrenHandler.getChildren())); } } }
protected void finished() { if (isValidXML()) { state = new CompositeRepositoryState(); state.setName(attrValues[0]); state.setType(attrValues[1]); state.setVersion(attrValues[2]); state.setDescription(attrValues[3]); state.setProvider(attrValues[4]); state.setProperties((propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties())); state.setChildren((childrenHandler == null ? new URI[0] // : childrenHandler.getChildren())); } } }
protected void finished() { if (isValidXML()) { String[][] mappingRules = (mappingRulesHandler == null ? new String[0][0] // : mappingRulesHandler.getMappingRules()); Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); Set<SimpleArtifactDescriptor> artifacts = (artifactsHandler == null ? new HashSet<SimpleArtifactDescriptor>(0) // : artifactsHandler.getArtifacts()); repository = new SimpleArtifactRepository(agent, attrValues[0], attrValues[1], attrValues[2], attrValues[3], // attrValues[4], artifacts, mappingRules, properties); } } }
protected void finished() { if (isValidXML()) { String[][] mappingRules = (mappingRulesHandler == null ? new String[0][0] // : mappingRulesHandler.getMappingRules()); Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); Set<SimpleArtifactDescriptor> artifacts = (artifactsHandler == null ? new HashSet<SimpleArtifactDescriptor>(0) // : artifactsHandler.getArtifacts()); repository = new SimpleArtifactRepository(agent, attrValues[0], attrValues[1], attrValues[2], attrValues[3], // attrValues[4], artifacts, mappingRules, properties); } } }
protected void finished() { if (isValidXML() && currentArtifact != null) { Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); currentArtifact.addProperties(properties); properties = (repositoryPropertiesHandler == null ? new OrderedProperties(0) : repositoryPropertiesHandler.getProperties()); currentArtifact.addRepositoryProperties(properties); IProcessingStepDescriptor[] processingSteps = (processingStepsHandler == null ? new ProcessingStepDescriptor[0] // : processingStepsHandler.getProcessingSteps()); currentArtifact.setProcessingSteps(processingSteps); artifacts.add(currentArtifact); } } }
protected void finished() { if (isValidXML() && currentArtifact != null) { Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); currentArtifact.addProperties(properties); properties = (repositoryPropertiesHandler == null ? new OrderedProperties(0) : repositoryPropertiesHandler.getProperties()); currentArtifact.addRepositoryProperties(properties); IProcessingStepDescriptor[] processingSteps = (processingStepsHandler == null ? new ProcessingStepDescriptor[0] // : processingStepsHandler.getProcessingSteps()); currentArtifact.setProcessingSteps(processingSteps); artifacts.add(currentArtifact); } } }
@Override protected void finished() { if (isValidXML() && currentArtifact != null) { Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); currentArtifact.addProperties(properties); properties = (repositoryPropertiesHandler == null ? new OrderedProperties(0) : repositoryPropertiesHandler.getProperties()); currentArtifact.addRepositoryProperties(properties); IProcessingStepDescriptor[] processingSteps = (processingStepsHandler == null ? EMPTY_STEPS // : processingStepsHandler.getProcessingSteps()); currentArtifact.setProcessingSteps(processingSteps); artifacts.add(currentArtifact); } } }
protected void finished() { if (isValidXML()) { String[][] mappingRules = (mappingRulesHandler == null ? new String[0][0] // : mappingRulesHandler.getMappingRules()); Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) // : propertiesHandler.getProperties()); Set<SimpleArtifactDescriptor> artifacts = (artifactsHandler == null ? new HashSet<SimpleArtifactDescriptor>(0) // : artifactsHandler.getArtifacts()); repository = new SimpleArtifactRepository(agent, attrValues[0], attrValues[1], attrValues[2], attrValues[3], // attrValues[4], artifacts, mappingRules, properties); } } }
protected void finished() { if (isValidXML() && currentArtifact != null) { Map<String, String> properties = (propertiesHandler == null ? new OrderedProperties(0) : propertiesHandler.getProperties()); currentArtifact.addProperties(properties); properties = (repositoryPropertiesHandler == null ? new OrderedProperties(0) : repositoryPropertiesHandler.getProperties()); currentArtifact.addRepositoryProperties(properties); IProcessingStepDescriptor[] processingSteps = (processingStepsHandler == null ? new ProcessingStepDescriptor[0] // : processingStepsHandler.getProcessingSteps()); currentArtifact.setProcessingSteps(processingSteps); artifacts.add(currentArtifact); } } }
public Map<String, String> getProperties() { if (propertiesHandler == null) return null; return propertiesHandler.getProperties(); }
public Map<String, String> getProperties() { if (propertiesHandler == null) return null; return propertiesHandler.getProperties(); }