[jboss-as7-dev] JBoss modules definition for Envers

Magesh Kumar Bojan mbojan at redhat.com
Mon Oct 17 09:48:21 EDT 2011


You bet me to it :)

Magesh
----- Original Message -----
From: "Ales Justin" <ales.justin at gmail.com>
To: "Dimitris Andreadis" <dimitris at redhat.com>
Cc: jboss-as7-dev at lists.jboss.org
Sent: Monday, October 17, 2011 7:11:03 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Re: [jboss-as7-dev] JBoss modules definition for Envers

I might miss some detail, but I hope this will help you for now.
(until David comes online) :-)

> I am looking at the org.hibernate modules definition in AS7:
> - <module xmlns="urn:jboss:module:1.0" name="org.hibernate">
> ...
> - <dependencies>
> ...
>   <module name="org.hibernate.envers" services="import" optional="true" />
>   </dependencies>
> </module>
> 
> Then at envers:
> - <module xmlns="urn:jboss:module:1.0" name="org.hibernate.envers">
> ...
> - <dependencies>
>   <module name="org.hibernate" />
> ...
>   </dependencies>
> </module>
> 
> Are cyclical dependencies allowed?

Yes, as long as there are no exports in those involved modules.

> Also, what's the service="import" clause really about? What's a service in this context?

Afaik, this means you can see dep module' META-INF/services path/dir.

Imo, Envers wants for Hibernate to see this

Skywalker:main alesj$ unzip -c hibernate-envers-4.0.0.CR2.jar META-INF/services/org.hibernate.integrator.spi.Integrator
Archive:  hibernate-envers-4.0.0.CR2.jar
  inflating: META-INF/services/org.hibernate.integrator.spi.Integrator  
org.hibernate.envers.event.EnversIntegrator


_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


More information about the jboss-as7-dev mailing list