public void visitField(Context annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); visit(type, componentType, site, field.getDeclaringClass(), field, context); }
public void visitField(Context annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); visit(type, componentType, site, field.getDeclaringClass(), field, context); }
public void visitField(Channel annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); String name = helper.getSiteName(field, null); Class<?> type = field.getType(); createReference(name, annotation, type, componentType, site, implClass, context); }
public void visitField(Channel annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); String name = helper.getSiteName(field, null); Class<?> type = field.getType(); createReference(name, annotation, type, componentType, site, implClass, context); }
public void visitField(PersistenceUnit annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); PersistenceUnitResourceReference definition = createDefinition(annotation); componentType.add(definition, site); }
public void visitField(PersistenceUnit annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); PersistenceUnitResourceReference definition = createDefinition(annotation); componentType.add(definition, site); }
public void visitField(Cache annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, null); FieldInjectionSite site = new FieldInjectionSite(field); Class<?> type = field.getType(); ResourceReferenceDefinition definition = create(name, annotation, type, field, componentType, context); componentType.add(definition, site); }
public void visitField(PersistenceContext annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); String name = helper.getSiteName(field, null); if (EntityManager.class.equals(field.getType())) { PersistenceContextResourceReference reference = createReference(name, field, annotation, componentType, context); componentType.add(reference, site); } else { HibernateSessionResourceReference reference = createSessionReference(name, annotation, componentType); componentType.add(reference, site); } }
public void visitField(PersistenceUnit annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); PersistenceUnitResourceReference definition = createDefinition(annotation); componentType.add(definition, site); // record that the implementation requires JPA componentType.addRequiredCapability("jpa"); }
public void addDefinition(Field field, String name, boolean required, Class<?> clazz, InjectingComponentType componentType, IntrospectionContext context) { name = helper.getSiteName(field, name); Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); Reference<ComponentType> definition = createDefinition(name, required, type, clazz, componentType, context); componentType.add(definition, site); addTargets(field, field, context, definition); }
public void visitField(Producer annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, annotation.value()); Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); ProducerDefinition definition = createDefinition(name, type, implClass, componentType, field, context); componentType.add(definition, site); }
public void visitField(PersistenceContext annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); String name = helper.getSiteName(field, null); if (EntityManager.class.equals(field.getType())) { PersistenceContextResourceReference reference = createReference(name, field, annotation, componentType, context); componentType.add(reference, site); } else { HibernateSessionResourceReference reference = createSessionReference(name, annotation, componentType); componentType.add(reference, site); } }
public void visitField(org.oasisopen.sca.annotation.Callback annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { validate(field, componentType, context); String name = helper.getSiteName(field, null); Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); Callback definition = createDefinition(name, type, implClass, componentType, context); componentType.add(definition, site); }
public void visitField(Callback annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { validate(field, componentType, context); String name = helper.getSiteName(field, null); Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); CallbackDefinition definition = createDefinition(name, type, implClass, componentType, context); componentType.add(definition, site); }
public void visitField(Reference annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, annotation.name()); Type type = field.getGenericType(); FieldInjectionSite site = new FieldInjectionSite(field); Annotation[] annotations = field.getAnnotations(); boolean required = annotation.required(); ReferenceDefinition definition = createDefinition(name, required, type, implClass, annotations, componentType, context); componentType.add(definition, site); }
public void visitField(Monitor annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, null); Type genericType = field.getGenericType(); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); FieldInjectionSite site = new FieldInjectionSite(field); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitField(Monitor annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, null); Type genericType = field.getGenericType(); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); FieldInjectionSite site = new FieldInjectionSite(field); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitField(Monitor annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) { String name = helper.getSiteName(field, null); Type genericType = field.getGenericType(); TypeMapping typeMapping = context.getTypeMapping(implClass); Class<?> type = helper.getBaseType(genericType, typeMapping); FieldInjectionSite site = new FieldInjectionSite(field); MonitorResourceReference resource = createDefinition(name, annotation, type, componentType, context); componentType.add(resource, site); }
public void visitField(PersistenceUnit annotation, Field field, Class<?> implClass, I implementation, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); PersistenceUnitResource definition = createDefinition(annotation); InjectingComponentType componentType = implementation.getComponentType(); componentType.add(definition, site); // record that the implementation requires JPA componentType.addRequiredCapability("jpa"); }
public void visitField(PersistenceContext annotation, Field field, Class<?> implClass, I implementation, IntrospectionContext context) { FieldInjectionSite site = new FieldInjectionSite(field); InjectingComponentType componentType = implementation.getComponentType(); PersistenceContextResource definition = createDefinition(annotation, componentType); componentType.add(definition, site); // record that the implementation requires JPA componentType.addRequiredCapability("jpa"); }