public void visitMethod(Context annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); visit(type, componentType, site, method.getDeclaringClass(), method, context); }
public void visitMethod(Context annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); visit(type, componentType, site, method.getDeclaringClass(), method, context); }
public void visitMethod(Reference annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, annotation.name()); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); Annotation[] annotations = method.getAnnotations(); ReferenceDefinition definition = createDefinition(name, annotation.required(), type, implClass, annotations, componentType, context); componentType.add(definition, site); }
public void visitMethod(Callback annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { validate(method, componentType, context); String name = helper.getSiteName(method, null); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); CallbackDefinition definition = createDefinition(name, type, implClass, componentType, context); componentType.add(definition, site); }
public void visitMethod(org.fabric3.api.annotation.Producer annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, annotation.value()); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); Producer<ComponentType> definition = createProducer(name, type, implClass, componentType, method, context); Class<?> clazz = method.getDeclaringClass(); processTargets(annotation, definition, method, clazz, context); componentType.add(definition, site); }
public void visitConstructorParameter(org.fabric3.api.annotation.Producer annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, annotation.value()); Type type = helper.getGenericType(constructor, index); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); Producer<ComponentType> producer = createProducer(name, type, implClass, componentType, constructor, context); Class<?> clazz = constructor.getDeclaringClass(); processTargets(annotation, producer, constructor, clazz, context); componentType.add(producer, site); }
public void visitConstructorParameter(Reference annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, annotation.name()); Type type = helper.getGenericType(constructor, index); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); Annotation[] annotations = constructor.getParameterAnnotations()[index]; boolean required = annotation.required(); ReferenceDefinition definition = createDefinition(name, required, type, implClass, annotations, componentType, context); componentType.add(definition, site); }
public void visitMethod(Producer annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, annotation.value()); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); ProducerDefinition definition = createDefinition(name, type, implClass, componentType, method, context); componentType.add(definition, site); }
public void visitConstructorParameter(Producer annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, annotation.value()); Type type = helper.getGenericType(constructor, index); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); ProducerDefinition definition = createDefinition(name, type, implClass, componentType, constructor, context); componentType.add(definition, site); }
public void visitMethod(org.oasisopen.sca.annotation.Callback annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { validate(method, componentType, context); String name = helper.getSiteName(method, null); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); Callback definition = createDefinition(name, type, implClass, componentType, context); componentType.add(definition, site); }
public void addDefinition(Method method, String name, boolean required, Class<?> clazz, InjectingComponentType componentType, IntrospectionContext context) { name = helper.getSiteName(method, name); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); Reference<ComponentType> definition = createDefinition(name, required, type, clazz, componentType, context); addTargets(method, method, context, definition); componentType.add(definition, site); }
public void addDefinition(Constructor constructor, String name, int index, boolean required, Class<?> clazz, InjectingComponentType componentType, IntrospectionContext context) { name = helper.getSiteName(constructor, index, name); Type type = helper.getGenericType(constructor, index); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); Reference<ComponentType> definition = createDefinition(name, required, type, clazz, componentType, context); componentType.add(definition, site); addTargets(constructor, constructor, context, definition); }
public void visitMethod(Monitor annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, null); TypeMapping typeMapping = context.getTypeMapping(implClass); Type genericType = helper.getGenericType(method); Class<?> type = helper.getBaseType(genericType, typeMapping); MethodInjectionSite site = new MethodInjectionSite(method, 0); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitMethod(Monitor annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, null); TypeMapping typeMapping = context.getTypeMapping(implClass); Type genericType = helper.getGenericType(method); Class<?> type = helper.getBaseType(genericType, typeMapping); MethodInjectionSite site = new MethodInjectionSite(method, 0); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitMethod(Monitor annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(method, null); TypeMapping typeMapping = context.getTypeMapping(implClass); Type genericType = helper.getGenericType(method); Class<?> type = helper.getBaseType(genericType, typeMapping); MethodInjectionSite site = new MethodInjectionSite(method, 0); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitConstructorParameter(Monitor annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, null); Type genericType = helper.getGenericType(constructor, index); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitConstructorParameter(Monitor annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, null); Type genericType = helper.getGenericType(constructor, index); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitConstructorParameter(Monitor annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, null); Type genericType = helper.getGenericType(constructor, index); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitMethod(org.oasisopen.sca.annotation.Property annotation, Method method, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { boolean result = validate(annotation, method, componentType, context); if (!result) { return; } String name = helper.getSiteName(method, annotation.name()); Type type = helper.getGenericType(method); MethodInjectionSite site = new MethodInjectionSite(method, 0); TypeMapping typeMapping = context.getTypeMapping(implClass); boolean required = annotation.required(); Property property = createDefinition(name, required, type, typeMapping); processSource(method, method.getDeclaringClass(), property, context); componentType.add(property, site); }
public void visitConstructorParameter(org.oasisopen.sca.annotation.Property annotation, Constructor<?> constructor, int index, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(constructor, index, annotation.name()); Type type = helper.getGenericType(constructor, index); ConstructorInjectionSite site = new ConstructorInjectionSite(constructor, index); TypeMapping typeMapping = context.getTypeMapping(implClass); boolean required = annotation.required(); Property property = createDefinition(name, required, type, typeMapping); componentType.add(property, site); }