Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16004

Merge ejb method interface enum in ejb3 subsystem and metadata-ejb

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 27.0.0.Alpha1, 27.0.0.Final
    • None
    • EJB
    • None

    Description

      both ejb3 subsystem and metadata-ejb contain an enum to represent the types of ejb method invocations:

      org.jboss.metadata.ejb.spec.MethodInterfaceType:

      public enum MethodInterfaceType {
          Home,
          Remote,
          LocalHome,
          Local,
          ServiceEndpoint,
          Timer,
          MessageEndpoint
      }
      

      org.jboss.as.ejb3.component.MethodIntf:

      public enum MethodIntf {
          BEAN, // represents a direct call to the Jakarta Enterprise Beans (temporary)
          HOME,
          REMOTE,
          LOCAL_HOME,
          LOCAL,
          SERVICE_ENDPOINT,
          TIMER,
          MESSAGE_ENDPOINT,
      }
      

      ejb3 subsystem's enum has one more value: BEAN to represent the a default, direct invocation.

      We should be able to merge the 2 enums, and remove all the code that convert between one to the other.

      Attachments

        Issue Links

          Activity

            People

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: