Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-310

Add a post-construct method to ContainerConfiguration

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 1.0.0.Alpha5
    • 1.0.0.Alpha4
    • Configuration
    • None
    • Compatibility/Configuration

      The ContainerConfiguration SPI should include a method that is invoked after all the properties have been set so that component properties can be calculated and perhaps validation can be performed. When you introduce a container-managed component type w/o a post-construct hook, it results in logic being performed in setter methods. We don't want that sort of thing. We want to keep it clean.

      public interface ContainerConfiguration
      {
      ContainerProfile getContainerProfile();
      void afterPropertiesSet(); // alternate: void postConstruct();
      }

      We could also entertain the possibility of honoring the @PostConstruct annotation.

      An example use case is to assemble the JSR-88 deployment URI from various facts provided, such as the server host and port (or admin server host and port), if an explicit deployment URI is not provided.

              Unassigned Unassigned
              dan.j.allen Dan Allen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: