Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1969

OpenEJBDeployableContainer has InstanceProducer<Context>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.5.1
    • 4.5.2, 4.7.0
    • arquillian
    • None

    Description

      Nice to have

      In OpenEJBDeployableContainer

      Change this:
      private InitialContext initialContext;

      To this:
      @Inject
      @DeploymentScoped // I'm assuming DeploymentScoped .. is there a better one to use?
      private InstanceProducer<Context> initialContext;

      So other Arquillian stuff can access the context with:

      @Inject
      private Instance<Context> ctx;

      Instead of new InitialContext().

      Attachments

        1. OPENEJB-1969.patch
          1 kB
          Trevor Baker
        2. OPENEJB-1969.zip
          15 kB
          Trevor Baker

        Activity

          People

            Unassigned Unassigned
            amoebaworks Trevor Baker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: