Class BeanService
- java.lang.Object
-
- de.bmiag.tapir.core.annotation.usebean.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.
-
-
-
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
-
-