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

Jason T. Greene jason.greene at redhat.com
Mon Oct 17 10:41:02 EDT 2011


You could break the cyclic dep if hibernate supported using a separate 
classloader to load an extension.

On 10/17/11 9:04 AM, Scott Marlow wrote:
> At the root, is the Hibernate optional dependency on Envers, that uses
> Envers if present.  Envers also depends on Hibernate.
>
>
> On 10/17/2011 09:20 AM, Dimitris Andreadis wrote:
>> Hi there,
>>
>> 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?
>>
>> Also, what's the service="import" clause really about? What's a service in this context?
>>
>>    From the doc:
>> https://docs.jboss.org/author/display/MODULES/Module+descriptors:
>> Specify whether this dependency's services* are imported and/or exported. Possible values
>> are "none", "import", or "export"; defaults to "none".
>>
>> Thanks in advance
>> /D
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat


More information about the jboss-as7-dev mailing list