Package javax.ejb

Annotation Type Init


@Target(METHOD) @Retention(RUNTIME) public @interface Init
Designates a method of a session bean that corresponds to the create method of an adapted Home interface or an adapted Local Home interface.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the corresponding create method of the adapted Home/LocalHome interface.
  • Element Details

    • value

      String value
      The name of the corresponding create method of the adapted Home/LocalHome interface. This value is used to disambiguate the case where there are multiple create methods on an adapted Home/LocalHome interface with the same signature as the annotated @Init method. If no value is specified, the create matching is based on signature only.
      Default:
      ""