Examples of AnnotatedType


Examples of javax.enterprise.inject.spi.AnnotatedType

  final ErraiService delegate;

  public ServiceMetaData(BeanManager bm, ErraiService delegate) {

    //use this to read annotations of the class
    AnnotatedType at = bm.createAnnotatedType(ErraiServiceImpl.class);

    //use this to create the class and inject dependencies
    this.it = bm.createInjectionTarget(at);

    // invocation target
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

      }
    }

    //todo: needs to be rewritten to support @SessionScoped
    for (final Class<?> rpcIntf : managedTypes.getRpcEndpoints().keySet()) {
      final AnnotatedType type = managedTypes.getRpcEndpoints().get(rpcIntf);
      final Class beanClass = type.getJavaClass();

      log.info("Register RPC Endpoint: " + type + "(" + rpcIntf + ")");

      // TODO: Copied from errai internals, refactor at some point
      createRPCScaffolding(rpcIntf, beanClass, bus, new ResourceProvider() {
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

  // final InjectionTarget it;
  final MessageBus delegate;

  public MessageBusMetaData(BeanManager bm, MessageBus delegate) {
    AnnotatedType at = new AnnotatedType() {
      public Class getJavaClass() {
        return ServerMessageBusImpl.class;
      }

      public Set getConstructors() {
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

      final Set<AnnotatedMethod> methods = new HashSet<AnnotatedMethod>();
      methods.addAll(type.getMethods());
      methods.removeAll(targetedMethods);

      return new AnnotatedType()
      {
         @Override
         public Class getJavaClass()
         {
            return type.getJavaClass();
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

      }
    }

    //todo: needs to be rewritten to support @SessionScoped
    for (final Class<?> rpcIntf : managedTypes.getRpcEndpoints().keySet()) {
      final AnnotatedType type = managedTypes.getRpcEndpoints().get(rpcIntf);
      final Class beanClass = type.getJavaClass();

      log.info("Register RPC Endpoint: " + type + "(" + rpcIntf + ")");

      // TODO: Copied from errai internals, refactor at some point
      createRPCScaffolding(rpcIntf, beanClass, bus, beanManager);
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

    {
        try
        {
            AbstractInjectionTargetBean<MultpleInterceptor> component = defineManagedBean(MultpleInterceptor.class);

            AnnotatedType annotatedType = getWebBeansContext().getAnnotatedElementFactory().getAnnotatedType(component.getReturnType());
            getWebBeansContext().getEJBInterceptorConfig().configure(annotatedType, component.getInterceptorStack());
        }
        catch (WebBeansConfigurationException e)
        {
            System.out.println("got expected exception: " + e.getMessage());
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

        if(creationalContext == null)
        {
            creationalContext = beanManager.createCreationalContext(null);
        }

        AnnotatedType annotatedType = beanManager.createAnnotatedType(instanceUnderInjection.getClass());
        beanManager.createInjectionTarget(annotatedType).inject(instanceUnderInjection, creationalContext);
    }
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

    {
        try
        {
            clear();
            AbstractInjectionTargetBean<MoreThanOnePostConstructComponent> component = defineManagedBean(MoreThanOnePostConstructComponent.class);
            AnnotatedType annotatedType = getWebBeansContext().getAnnotatedElementFactory().getAnnotatedType(component.getReturnType());
            getWebBeansContext().getEJBInterceptorConfig().configure(annotatedType, component.getInterceptorStack());
        }
        catch (WebBeansConfigurationException e)
        {
            System.out.println("got expected exception: " + e.getMessage());
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

    {
        try
        {
            clear();
            AbstractInjectionTargetBean<PostContructMethodHasParameterComponent> component = defineManagedBean(PostContructMethodHasParameterComponent.class);
            AnnotatedType annotatedType = getWebBeansContext().getAnnotatedElementFactory().getAnnotatedType(component.getReturnType());
            getWebBeansContext().getEJBInterceptorConfig().configure(annotatedType, component.getInterceptorStack());
        }
        catch (WebBeansConfigurationException e)
        {
            System.out.println("got expected exception: " + e.getMessage());
View Full Code Here

Examples of javax.enterprise.inject.spi.AnnotatedType

    {
        try
        {
            clear();
            AbstractInjectionTargetBean<?> component = defineManagedBean(PostContructMethodHasReturnTypeComponent.class);
            AnnotatedType annotatedType = getWebBeansContext().getAnnotatedElementFactory().getAnnotatedType(component.getReturnType());
            getWebBeansContext().getEJBInterceptorConfig().configure(annotatedType, component.getInterceptorStack());
        }
        catch (WebBeansConfigurationException e)
        {
            System.out.println("got expected exception: " + e.getMessage());
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.