private void processComponentType(SpringImplementation springImplementation) { // Create a ComponentType and mark it unresolved ComponentType componentType = assemblyFactory.createComponentType(); componentType.setUnresolved(true); springImplementation.setComponentType(componentType); } // end processComponentType
private ComponentType getComponentType(ModelResolver resolver, JavaImplementation impl, ProcessorContext context) { String className = impl.getJavaClass().getName(); String componentTypeURI = className.replace('.', '/') + ".componentType"; ComponentType componentType = assemblyFactory.createComponentType(); componentType.setUnresolved(true); componentType.setURI(componentTypeURI); componentType = resolver.resolveModel(ComponentType.class, componentType, context); if (!componentType.isUnresolved()) { return componentType; } return null; }
public ComponentType read(XMLStreamReader reader, ProcessorContext context) throws XMLStreamException { int event = reader.getEventType(); ComponentType componentType = factory.createComponentType(); while (true) { switch (event) {
public void resolve(WebImplementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve the component type String uri = implementation.getURI(); if (uri != null) { ComponentType componentType = assemblyFactory.createComponentType(); componentType.setURI("web.componentType"); componentType = resolver.resolveModel(ComponentType.class, componentType, context); if (!componentType.isUnresolved()) { // Initialize the implementation's services, references and properties implementation.getServices().addAll(componentType.getServices()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties()); } } implementation.setUnresolved(false); }
public ComponentType read(XMLStreamReader reader, ProcessorContext context) throws XMLStreamException { int event = reader.getEventType(); ComponentType componentType = factory.createComponentType(); while (true) { switch (event) {
ComponentType componentType = assemblyFactory.createComponentType(); componentType.setURI(uri); componentType.setUnresolved(true);
ComponentType componentType = assemblyFactory.createComponentType(); componentType.setURI(uri); componentType.setUnresolved(true);
componentType = assemblyFactory.createComponentType();
componentType = assemblyFactory.createComponentType();
componentTypeURI = componentTypeURI.substring(0, componentTypeURI.lastIndexOf('.')); componentTypeURI += ".componentType"; ComponentType componentType = assemblyFactory.createComponentType(); componentType.setUnresolved(true); componentType.setURI(componentTypeURI);
ComponentType componentType = assemblyFactory.createComponentType(); componentType.setUnresolved(true); impl.setComponentType(componentType);
ComponentType componentType = assemblyFactory.createComponentType(); componentType = assemblyFactory.createComponentType();
ComponentType componentType = assemblyFactory.createComponentType(); componentType.setUnresolved(true); impl.setComponentType(componentType);
ComponentType beanComponentType = assemblyFactory.createComponentType(); javaImplementation = beanIntrospector.introspectBean(beanClass, beanComponentType); continue; ComponentType beanComponentType = assemblyFactory.createComponentType();
descriptions = resolver.resolveModel(ServiceDescriptions.class, descriptions, context); if (descriptions != null && !descriptions.isEmpty()) { ComponentType ct = assemblyFactory.createComponentType(); int index = 0; for (ServiceDescription ds : descriptions) {