Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode 1515 - Updated AS7 kit by splitting up the sequencers and common into separate modules #416

Merged
merged 6 commits into from Jun 21, 2012

Conversation

hchiorean
Copy link
Member

To validate the AS7 kit an Arquillian integration test was added which tests each of the built-in sequencers.

However, for the test to pass, MODE-1521 needs to be fixed. I've added a temporary workaround with a TODO, in the last commit, which allows all the sequencers to be properly configured in AS7

Horia Chiorean added 6 commits June 21, 2012 09:40
…between modules.

Extracting the common module did bring up a small issue in that i18n resources from other modules (e.g. main) could not be loaded. The reason what that the ClasspathLocalizationRepository always used its own CL to load the .properties file, which doesn't work with the AS7 classloading mechanism. The solution was to simplify the loading  and always use the class loader of the i18n class which we're trying to localize.
Since AS7 uses modules dedicated classloaders, it was necessary to update the way in which components (sequencers, extractors etc) are loaded. The solution was to move the classloader creation to the Environment (with the dedicated LocalEnvironment and RepsitoryService implementations)  and to use a new class loader implementation: DelegatingClassLoader. This implementation uses an inner list of class loader and delegates each operation to them. In the case of AS7, there is a delegate class loader which uses the ModuleLoader to find the classloader for each module.

The changes also contain an update to the common package: the component package and most of its unused classes have been removed. The classes which are still used have been moved to .util.
…rder for all the sequencers to be present in the repository configuration, a workaround with a TODO was added for MODE-1521
@rhauch rhauch merged commit f0710b0 into ModeShape:master Jun 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants