Add a post-construct method to ContainerConfiguration
-----------------------------------------------------
Key: ARQ-310
URL:
https://jira.jboss.org/browse/ARQ-310
Project: Arquillian
Issue Type: Feature Request
Components: Configuration
Affects Versions: 1.0.0.Alpha4
Reporter: Dan Allen
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.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira