[jboss-as7-dev] AS7-1807

Brian Stansberry brian.stansberry at redhat.com
Tue Dec 13 10:59:40 EST 2011


I have a feeling this isn't really answering your question, but here goes...

I vaguely envisioned this as being based on a ServiceLoader. So we would 
define an interface. In an artifact that will pretty much never change. 
So products can depend on version 1.0 of that interface pretty much 
forever. Different products would have a module that implements that 
interface and exposes its impl via ServiceLoader. The build would deal 
with deal with getting the correct module in place.

Since the interface can pretty much never change, it should be real 
generic. Probably just provides a properties map.

Map<String, String> getProductConfigurationSettings()

On 12/12/11 5:19 PM, Paul Gier wrote:
> I started working on a way to modularize the product name and version in
> the startup/shutdown logs of AS7 [1][2].  There is a new module called
> "product" which contains the product name and version.  However this
> approach doesn't seem good to me because the "host-controller",
> "process-controller", and "server" modules all now have dependencies on
> this new module.
>
> Ideally, I want to set this up so that there is sort of a placeholder
> product name/version used during the build or these modules, but then
> this can be overridden by the product module later in the build.  Anyone
> have suggestions about how to do this?
>
> Thanks!
>
> [1]https://github.com/pgier/jboss-as/commits/AS7-1807
> [2]https://issues.jboss.org/browse/AS7-1807
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list