Package com.caucho.config.reflect

Examples of com.caucho.config.reflect.BaseType.fill()


   
    ProcessInjectionTargetImpl<T> processTarget
      = new ProcessInjectionTargetImpl<T>(target, annotatedType);
   
    BaseType eventType = createBaseType(ProcessInjectionTargetImpl.class);
    eventType = eventType.fill(createBaseType(annotatedType.getBaseType()));

    fireExtensionEvent(processTarget, eventType);

    return (InjectionTarget<T>) processTarget.getInjectionTarget();
  }
View Full Code Here


  {
    ProcessAnnotatedTypeImpl<T> processType
      = new ProcessAnnotatedTypeImpl<T>(type);

    BaseType baseType = createBaseType(ProcessAnnotatedTypeImpl.class);
    baseType = baseType.fill(createBaseType(type.getBaseType()));
   
    fireExtensionEvent(processType, baseType);

    if (processType.isVeto()) {
      return;
View Full Code Here

  public <T> Bean<T> processBean(Bean<T> bean, ProcessBean<T> processBean)
  {
    InjectManager cdi = _cdiManager;
   
    BaseType baseType = cdi.createTargetBaseType(processBean.getClass());
    baseType = baseType.fill(cdi.createTargetBaseType(bean.getBeanClass()));
   
    _pendingEventList.add(new PendingEvent(processBean, baseType));
   
    /*
    getEventManager().fireExtensionEvent(processBean, baseType);
View Full Code Here

    InjectManager cdi = _cdiManager;
   
    ProcessBeanImpl<T> event = new ProcessBeanImpl<T>(_cdiManager, bean, ann);
   
    BaseType baseType = cdi.createTargetBaseType(event.getClass());
    baseType = baseType.fill(cdi.createTargetBaseType(bean.getBeanClass()));

    _pendingEventList.add(new PendingEvent(event, baseType));
   
    /*
    getEventManager().fireExtensionEvent(event, baseType);
View Full Code Here

   
    ProcessManagedBeanImpl<T> event
      = new ProcessManagedBeanImpl<T>(_cdiManager, bean, ann);
   
    BaseType baseType = cdi.createTargetBaseType(event.getClass());
    baseType = baseType.fill(cdi.createTargetBaseType(bean.getBeanClass()));
   
    _pendingEventList.add(new PendingEvent(event, baseType));
   
    /*
    getEventManager().fireExtensionEvent(event, baseType);
View Full Code Here

   
    AnnotatedMethod<? super T> method = bean.getProducesMethod();
    Bean<?> producerBean = bean.getProducerBean();
   
    BaseType baseType = cdi.createTargetBaseType(event.getClass());
    baseType = baseType.fill(cdi.createTargetBaseType(method.getBaseType()),
                             cdi.createTargetBaseType(producerBean.getBeanClass()));
   
    _pendingEventList.add(new PendingEvent(event, baseType));
   
    /*
 
View Full Code Here

      = new ProcessProducerFieldImpl<T,X>(_cdiManager, bean);
   
    AnnotatedField<? super T> field = bean.getField();
   
    BaseType baseType = cdi.createTargetBaseType(event.getClass());
    baseType = baseType.fill(cdi.createTargetBaseType(field.getBaseType()),
                             cdi.createTargetBaseType(bean.getProducerBean().getBeanClass()));
   
    _pendingEventList.add(new PendingEvent(event, baseType));
   
    /*
 
View Full Code Here

   
    ProcessInjectionTargetImpl<T> processTarget
      = new ProcessInjectionTargetImpl<T>(_cdiManager, target, annotatedType);
   
    BaseType eventType = cdi.createTargetBaseType(ProcessInjectionTargetImpl.class);
    eventType = eventType.fill(cdi.createTargetBaseType(annotatedType.getBaseType()));

    getEventManager().fireExtensionEvent(processTarget, eventType);

    return (InjectionTarget<T>) processTarget.getInjectionTarget();
  }
View Full Code Here

      declaringClass = declaringType.getBaseType();
    else
      declaringClass = producesMethod.getJavaMember().getDeclaringClass();
   
    BaseType eventType = cdi.createTargetBaseType(ProcessProducerImpl.class);
    eventType = eventType.fill(cdi.createTargetBaseType(producesMethod.getBaseType()),
                               cdi.createTargetBaseType(declaringClass));

    getEventManager().fireExtensionEvent(event, eventType);
   
    return event.getProducer();
View Full Code Here

      = new ProcessProducerImpl<T,X>(producesField, producer);
   
    AnnotatedType<X> declaringType = producesField.getDeclaringType();
   
    BaseType eventType = cdi.createTargetBaseType(ProcessProducerImpl.class);
    eventType = eventType.fill(cdi.createTargetBaseType(producesField.getBaseType()),
                               cdi.createTargetBaseType(declaringType.getBaseType()));

    getEventManager().fireExtensionEvent(event, eventType);
   
    return event.getProducer();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.