[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]