[jboss-jira] [JBoss JIRA] Updated: (JBCL-167) Mixin interface for optimized requirement resolution

Ales Justin (JIRA) jira-events at lists.jboss.org
Mon May 16 11:31:01 EDT 2011


     [ https://issues.jboss.org/browse/JBCL-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin updated JBCL-167:
-----------------------------

    Fix Version/s:     (was: JBossCL.2.2.0.Alpha6)


> Mixin interface for optimized requirement resolution
> ----------------------------------------------------
>
>                 Key: JBCL-167
>                 URL: https://issues.jboss.org/browse/JBCL-167
>             Project: JBoss ClassLoader
>          Issue Type: Task
>            Reporter: Thomas Diesler
>            Assignee: Ales Justin
>
> /**
> * Mixin interface for custom resolution by a requirement
> */
> public interface CustomResolution extends Requirement
> {
>     /**
>      * Resolve the requirement
>      *
>      * @param domain the domain against which to resolve
>      * @return the resolved module or null if it is not resolved
>      */
>     Module resolves(Domain domain);
> }
> if (requirement instanceof CustomResolution)
>    return requirement.resolves(this);
> else
>    // do old code

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list