Examples of AliasLiteral


Examples of org.jboss.forge.shell.plugins.AliasLiteral

      {
         if (type.isAssignableFrom(facetType))
         {
            if (Annotations.isAnnotationPresent(facetType, Alias.class))
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                        new AliasLiteral(ConstraintInspector.getName(facetType)));
            else
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
         }
         if (type.equals(facetType))
         {
            /**
             * Ensure that if there is an exact match, we prefer it over other facet types.
             */
            if (Annotations.isAnnotationPresent(facetType, Alias.class))
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                        new AliasLiteral(ConstraintInspector.getName(facetType)));
            else
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
            break;
         }
      }
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

   {
      if (command != null)
      {
         Class<? extends Plugin> pluginType = command.getParent().getType();

         Set<Bean<?>> beans = manager.getBeans(pluginType, new AliasLiteral(command.getParent().getName()));
         Bean<?> bean = manager.resolve(beans);

         Method method = command.getMethod();

         Class<?>[] parmTypes = method.getParameterTypes();
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

   {
      if (command != null)
      {
         Class<? extends Plugin> pluginType = command.getParent().getType();

         Set<Bean<?>> beans = manager.getBeans(pluginType, new AliasLiteral(command.getParent().getName()));
         Bean<?> bean = manager.resolve(beans);

         Method method = command.getMethod();

         Class<?>[] parmTypes = method.getParameterTypes();
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

        {
            if (type.isAssignableFrom(facetType))
            {
                if (Annotations.isAnnotationPresent(facetType, Alias.class))
                    result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                                new AliasLiteral(ConstraintInspector.getName(facetType)));
                else
                    result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
            }
            if (type.equals(facetType))
            {
                /**
                 * Ensure that if there is an exact match, we prefer it over other facet types.
                 */
                if (Annotations.isAnnotationPresent(facetType, Alias.class))
                    result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                                new AliasLiteral(ConstraintInspector.getName(facetType)));
                else
                    result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
                break;
            }
        }
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

   {
      if (command != null)
      {
         Class<? extends Plugin> pluginType = command.getParent().getType();

         Set<Bean<?>> beans = manager.getBeans(pluginType, new AliasLiteral(command.getParent().getName()));
         Bean<?> bean = manager.resolve(beans);

         Method method = command.getMethod();

         Class<?>[] parmTypes = method.getParameterTypes();
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

   {
      if (command != null)
      {
         Class<? extends Plugin> pluginType = command.getParent().getType();

         Set<Bean<?>> beans = manager.getBeans(pluginType, new AliasLiteral(command.getParent().getName()));
         Bean<?> bean = manager.resolve(beans);

         Method method = command.getMethod();

         Class<?>[] parmTypes = method.getParameterTypes();
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

   {
      if (command != null)
      {
         Class<? extends Plugin> pluginType = command.getParent().getType();

         Set<Bean<?>> beans = manager.getBeans(pluginType, new AliasLiteral(command.getParent().getName()));
         Bean<?> bean = manager.resolve(beans);

         Method method = command.getMethod();

         Class<?>[] parmTypes = method.getParameterTypes();
View Full Code Here

Examples of org.jboss.forge.shell.plugins.AliasLiteral

      {
         if (type.isAssignableFrom(facetType))
         {
            if (Annotations.isAnnotationPresent(facetType, Alias.class))
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                        new AliasLiteral(ConstraintInspector.getName(facetType)));
            else
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
         }
         if (type.equals(facetType))
         {
            /**
             * Ensure that if there is an exact match, we prefer it over other facet types.
             */
            if (Annotations.isAnnotationPresent(facetType, Alias.class))
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType,
                        new AliasLiteral(ConstraintInspector.getName(facetType)));
            else
               result = (T) BeanManagerUtils.getContextualInstance(bm, facetType);
            break;
         }
      }
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.