You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2006/08/31 19:08:22 UTC

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

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


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

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-684?page=comments#action_12456769 ] 
            
Kelvin Goodson commented on TUSCANY-684:
----------------------------------------

I've just this minute added some comments on this issue to the tuscany-dev mailing list.

> 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
>             Fix For: Java-Mx
>
>
> 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


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

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-684?page=comments#action_12455358 ] 
            
Kelvin Goodson commented on TUSCANY-684:
----------------------------------------

Capturing some more thoughts .....

Now that we have the HelperContext in place, it may be more appropriate to use this as the artifact for registering against,  rather than the TypeHelper.
When we are implementing the internals of this function it would be good to consider where the interface might sit in a future revision of the SDO spec.  I had an off-line conversation with Frank where he made the point that whilst TypeHelper might seem a natural place for it to sit, that's not good from the cross language perspective,  since this is a java centric piece of function,  so perhaps we should be thinking along the lines of a JavaHelperImpl that might surface as a JavaHelper in commonj.sdo after spec collaboration discussions.

> 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
>             Fix For: Java-Mx
>
>
> 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


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

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-684?page=all ]

Kelvin Goodson resolved TUSCANY-684.
------------------------------------

    Resolution: Fixed

added register(HelperContext scope) method to generated Factory instance -- also added an introspectable pattern version to the Factory implementation, and commentary to the generated classes on the options that were used to generate the classes.

> 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
>             Fix For: Java-Mx
>
>
> 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


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

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-684?page=all ]

ant elder updated TUSCANY-684:
------------------------------

    Fix Version/s: Java-M2

> 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
>             Fix For: Java-M2
>
>
> 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


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

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
    [ 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


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

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng closed TUSCANY-684.
--------------------------------


> Generated SDO classes should be able to register the static types to a given TypeHelper
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-684
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-684
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-M2
>            Reporter: Raymond Feng
>            Assignee: Frank Budinsky
>             Fix For: Java-SDO-beta1
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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


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

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-684:
-----------------------------------

    Fix Version/s:     (was: Java-SCA-Mx)
                   Java-SDO-M3

> Generated SDO classes should be able to register the static types to a given TypeHelper
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-684
>                 URL: https://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
>             Fix For: Java-SDO-M3
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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


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

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-684?page=all ]

Frank Budinsky updated TUSCANY-684:
-----------------------------------

    Fix Version/s: Java-Mx
                       (was: Java-M2)

This is related to TUSCANY-718.

> 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
>             Fix For: Java-Mx
>
>
> 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