Christian Bauer commented on Feature Request WELD-595

I wrote a custom Deployment to support One-JAR packaging in Weld SE, for Weld 1.1.0. Unfortunately I didn't have much opportunity to subclass or extend the existing code, it's all private and not very clearly separated. So I did my own scanning of directories and JARs (expect bugs):

https://github.com/4thline/seamless/blob/master/cdi/src/main/java/org/seamless/cdi/weld/SeamlessWeldSEDeployment.java

Also had to modify how beans.xml is loaded, that part is not extensible at all:

https://github.com/4thline/seamless/blob/master/cdi/src/main/java/org/seamless/cdi/weld/SeamlessBeansXmlParser.java

Usage:

    public static final Weld weld = new Weld() {
        @Override
        protected Deployment createDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap) {
            return new SeamlessWeldSEDeployment(resourceLoader, bootstrap);
        }
    };

Whatever the bootstrap API in CDI >1.2 will be, this should be an easily customizable aspect for all implementations.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to