Class BeanService


  • public class BeanService
    extends java.lang.Object
    This is a (for the most part internally used) service to register beans. It adds new fields to the given class, which are autowired by Spring.
    Since:
    3.3.0
    Author:
    Nils Christian Ehmke <[email protected]>
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerBean​(org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration annotatedClass, org.eclipse.xtend.lib.macro.declaration.TypeReference[] beanClasses, org.eclipse.xtend.lib.macro.declaration.Visibility visibility, org.eclipse.xtend.lib.macro.TransformationContext context)
      Adds beans to the given class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BeanService

        public BeanService()
    • Method Detail

      • registerBean

        public void registerBean​(org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration annotatedClass,
                                 org.eclipse.xtend.lib.macro.declaration.TypeReference[] beanClasses,
                                 org.eclipse.xtend.lib.macro.declaration.Visibility visibility,
                                 @Extension
                                 org.eclipse.xtend.lib.macro.TransformationContext context)
        Adds beans to the given class.
        Parameters:
        annotatedClass - The class which will get the new fields.
        beanClasses - The classes to be registered as beans. A new field is generated for each of those classes.
        visibility - The visibility of the new beans.
        context - The transformation context as provided by Xtend during a code transformation.
        Since:
        3.3.0