Package javax.enterprise.inject.spi

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


      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

      }
    }

    //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

    {
        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

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

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

    {
        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

    {
        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

    {
        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

    {
        try
        {
            clear();
            AbstractInjectionTargetBean<?> component = defineManagedBean(PostContructMethodHasCheckedExceptionComponent.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

    {
        try
        {
            clear();
            AbstractInjectionTargetBean<?> component = defineManagedBean(PostContructMethodHasStaticComponent.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

Related Classes of javax.enterprise.inject.spi.AnnotatedType

Copyright © 2018 www.massapicom. 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.