public SystemImplementation load(XMLStreamReader reader, IntrospectionContext introspectionContext) throws XMLStreamException { Location startLocation = reader.getLocation(); SystemImplementation implementation = new SystemImplementation(); validateAttributes(reader, introspectionContext, implementation); String implClass = reader.getAttributeValue(null, "class"); if (implClass == null) { MissingAttribute failure = new MissingAttribute("Implementation class must be specified using the class attribute", startLocation); introspectionContext.addError(failure); return null; } Class<?> clazz; try { clazz = introspectionContext.getClassLoader().loadClass(implClass); } catch (ClassNotFoundException e) { InvalidValue failure = new InvalidValue("Implementation class not found:" + implClass, startLocation); introspectionContext.addError(failure); return null; } LoaderUtil.skipToEndElement(reader); implementation.setImplementationClass(clazz); InjectingComponentType componentType = new InjectingComponentType(clazz); implementationIntrospector.introspect(componentType, introspectionContext); implementation.setComponentType(componentType); return implementation; }
implementation.setImplementationClass(instance.getClass()); InjectingComponentType componentType = new InjectingComponentType(instanceClass); implementationIntrospector.introspect(componentType, context); implementation.setComponentType(componentType);
implementation.setImplementationClass(instance.getClass()); InjectingComponentType componentType = new InjectingComponentType(instanceClass); implementationIntrospector.introspect(componentType, context); implementation.setComponentType(componentType);
IntrospectionContext context = new DefaultIntrospectionContext(contributionUri, bootClassLoader, COMPOSITE_URL); for (Component<? extends Implementation<?>> definition : composite.getComponents().values()) { processor.introspect((InjectingComponentType) definition.getComponentType(), context);
IntrospectionContext context = new DefaultIntrospectionContext(contributionUri, bootClassLoader, COMPOSITE_URL); for (Component<? extends Implementation<?>> definition : composite.getComponents().values()) { processor.introspect((InjectingComponentType) definition.getComponentType(), context);