[arquillian-issues] [JBoss JIRA] Closed: (ARQ-310) Add a post-construct method to ContainerConfiguration

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Wed Jun 15 11:40:30 EDT 2011


     [ https://issues.jboss.org/browse/ARQ-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aslak Knutsen closed ARQ-310.
-----------------------------

    Fix Version/s: 1.0.0.Alpha5
       Resolution: Out of Date


replaced by ARQ-168

> Add a post-construct method to ContainerConfiguration
> -----------------------------------------------------
>
>                 Key: ARQ-310
>                 URL: https://issues.jboss.org/browse/ARQ-310
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Configuration
>    Affects Versions: 1.0.0.Alpha4
>            Reporter: Dan Allen
>             Fix For: 1.0.0.Alpha5
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list