You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Yang ZHONG (JIRA)" <tu...@ws.apache.org> on 2006/10/02 23:29:23 UTC

[jira] Commented: (TUSCANY-684) Generated SDO classes should be able to register the static types to a given TypeHelper

    [ http://issues.apache.org/jira/browse/TUSCANY-684?page=comments#action_12439322 ] 
            
Yang ZHONG commented on TUSCANY-684:
------------------------------------

Currently, SDO/EMF registers static Types to the ClassLoader loading them.
It makes some sence, after all static Types are Java classes which have to be loaded by some ClassLoader.

However, registration scoping doesn't necessarily have to be the (only) exposing/accessing scoping.

One of the possible solutions can be delegating/linking the designated TypeHelper/scope (see Raymond's proposal) to the ClassLoader where the static Types are registered.
It can be called scope/registry delegation.

Just brainstorming for future implementation if it helpes any way at all.

> Generated SDO classes should be able to register the static types to a given TypeHelper
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-684
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-684
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-M2
>            Reporter: Raymond Feng
>         Assigned To: Frank Budinsky
>
> In the generated SDO classes, static types are automatically registered into the EMF global registry. This behavior prevent us from keeping SDO types into different scopes defined by external schemes. 
> It would be nice that we can do somthing like:
> SDOUtil.registerStaticTypes(TypeHelper scope, Class factoryClass);
> Thanks,
> Raymond

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org