Class BeanAnnotation

java.lang.Object
org.apache.juneau.annotation.BeanAnnotation

public class BeanAnnotation extends Object
Utility classes and methods for the @Bean annotation.
See Also:
  • Field Details

    • DEFAULT

      public static final Bean DEFAULT
      Default value
  • Constructor Details

  • Method Details

    • create

      public static BeanAnnotation.Builder create()
      Instantiates a new builder for this class.
      Returns:
      A new builder object.
    • create

      public static BeanAnnotation.Builder create(Class<?>... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • create

      public static BeanAnnotation.Builder create(String... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • copy

      public static Bean copy(Bean a, VarResolverSession r)
      Creates a copy of the specified annotation.
      Parameters:
      a - The annotation to copy.
      r - The var resolver for resolving any variables.
      Returns:
      A copy of the specified annotation.