[jboss-user] [JBoss Microcontainer Development] - Wildcard support in Dynamic-imports
Adrian Brock
do-not-reply at jboss.com
Tue Jun 8 11:28:22 EDT 2010
Adrian Brock [http://community.jboss.org/people/warjort] replied to the discussion
"Wildcard support in Dynamic-imports"
To view the discussion, visit: http://community.jboss.org/message/546818#546818
--------------------------------------------------------------
> Adrian Brock wrote:
> You want the operation to go through the delegate to the other policy with whatever export/import restrictions apply.
>
> *protected* DelegateLoader resolve(String pckg)
> {
> Requirement requirement = *new* PackageRequirement(pckg, range);
> // TODO -- add this DI to module? new DI impl to remove delegate from policy when resolved module goes away?
> RequirementDependencyItem item = *new* RequirementDependencyItem(module, requirement, module.getClassLoaderState(), ControllerState.INSTALLED);
> *if* (item.resolve(controller))
> {
> ClassLoaderPolicy policy = getPolicy();
> // TODO -- add delegate to policy
> return delegate;
> }
> *return* null;
> }
>
>
>
This fixes a lot of your TODOs above. :-.)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546818#546818]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100608/7fd67015/attachment-0001.html
More information about the jboss-user
mailing list