You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Felix Ren (JIRA)" <tu...@ws.apache.org> on 2006/11/14 09:33:37 UTC

[jira] Created: (TUSCANY-927) SCA Policy framework support in Tuscany

SCA Policy framework support in Tuscany
---------------------------------------

                 Key: TUSCANY-927
                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
             Project: Tuscany
          Issue Type: New Feature
          Components: Java SCA Core
    Affects Versions: Wish list
         Environment: all
            Reporter: Felix Ren


Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

Posted by "Felix Ren (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-927?page=comments#action_12449610 ] 
            
Felix Ren commented on TUSCANY-927:
-----------------------------------

Hi Jim and others,

This initial patch including several separated parts of Policy Framework, I did not integrate them into core loading and building phase yet.
Model classes for policy artifacts
IntentRegistry: Registry for system scope intent.
PolicySetLoader: A LoaderExtension load policy set model class from SCDL file.
PolicyEngine: Match intent to concrete policy artifacts.

I had two problems when I tried to integrate policy support into Tuscany runtime,
When policy intent is registered to SCA system, the SCA artifact type which can be applied to is represented with the QName of SCA type. And policy intent applied to an abstract SCA type is applicable for all concrete types of this abstract type. 
<intent name="xs:NCName" 
		appliesTo="list of xs:QNames" ?
		<description> Description of the policy intent
		</description>
</intent>
In SCDL file, SCA type is distinguished with the QName of XML element, after loading phase, the model classes don't hold the reference to QName, so we can't the get the QName of model or SCAObject when building and wiring. Do you think it is reasonable to add QName of SCA artifact type to model classes?

Another problem is about scope of PolicySet, I assume the PolicySet embedded in SCDL belongs to the Composite of this SCDL file, so I would add the following methods to CompositeComponentType, and integrate PolicySet loader to composite loader.
    Collection<PolicySet> getAllPolicySet();
PolicySet getPolicySet(QName name);
void addPolicySet(PolicySet policySet);

Do you think CompositeComponentType is the appropriate place for PolicySet?


Regards,
Felix

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

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

Felix Ren updated TUSCANY-927:
------------------------------

    Attachment: policy2.patch

Hi Jim,

I updated the code and added a new default SCDL policyFramework.scdl in core\src\main\resources\org\apache\tuscany\core, which defines policy related system components, and uses @Autowire annotation to wire them together. Individual builder impl and WireService can also get reference to PolcyEngine by using Autowire. Please review.
For next step, I'm finding a way to hook intents loading into Tuscany bootstrap, and writing a sample to verify existing policy framework codes.

Thanks,
Felix

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Assigned To: Jim Marino
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policy2.patch, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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] Assigned: (TUSCANY-927) SCA Policy framework support in Tuscany

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

Jim Marino reassigned TUSCANY-927:
----------------------------------

    Assignee: Jim Marino

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Assigned To: Jim Marino
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-927?page=comments#action_12451674 ] 
            
Jim Marino commented on TUSCANY-927:
------------------------------------

Great! I'll look at it today and apply. Thaks Felix.

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Assigned To: Jim Marino
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policy2.patch, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

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

Jim Marino closed TUSCANY-927.
------------------------------

    Resolution: Fixed

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Assigned To: Jim Marino
>             Fix For: Java-SCA-M3
>
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policy2.patch, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

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

Felix Ren updated TUSCANY-927:
------------------------------

    Attachment: policyinit.patch

Initial checkin for policy framework.

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Attachments: policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

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

Jean-Sebastien Delfino updated TUSCANY-927:
-------------------------------------------

    Patch Info: [Patch Available]

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Assigned To: Jim Marino
>             Fix For: Java-SCA-M3
>
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policy2.patch, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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-927) SCA Policy framework support in Tuscany

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

Felix Ren updated TUSCANY-927:
------------------------------

    Attachment: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip

I couldn't package a file in a new folder into the patch, so I upload it as a separated file.

> SCA Policy framework support in Tuscany
> ---------------------------------------
>
>                 Key: TUSCANY-927
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-927
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Core
>    Affects Versions: Wish list
>         Environment: all
>            Reporter: Felix Ren
>         Attachments: java.sca.kernel.core.src.test.resources.org.apache.tuscany.core.zip, policyinit.patch
>
>
> Intents and PolicySets support

-- 
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