It goes over the whole process of providing an new policy. As you mentioned, it provides a new itent [1] but also shows the policyProvider [1] also the JDKLoggingPolicyProcessor [2] that is responsible to reading the configuration from the definitions.xml and other necessary infra code.
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml [2] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java [3] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java On Tue, Mar 3, 2009 at 9:25 AM, Sacauskis, Mike <mike.sacaus...@gdit.com> wrote: > All that example shows is the definition of an intent. > > -----Original Message----- > From: Luciano Resende [mailto:luckbr1...@gmail.com] > Sent: Tuesday, March 03, 2009 8:36 AM > To: user@tuscany.apache.org > Subject: Re: Contents of Definitions.xml > > It's in modules/policy-loggin [1] > > [1] > https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/ > > On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <mike.sacaus...@gdit.com> > wrote: >> Where do I find the policy logging module? >> >> -----Original Message----- >> From: Luciano Resende [mailto:luckbr1...@gmail.com] >> Sent: Monday, March 02, 2009 5:20 PM >> To: user@tuscany.apache.org >> Subject: Re: Contents of Definitions.xml >> >> The policy support in Tuscany is very flexible, the policy-logging >> module is a good example on how to create your own policies (e.g >> providing intents, provide processors for the policySets, etc) >> >> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <mike.sacaus...@gdit.com> >> wrote: >>> I playing with the definitions.xml in the calculator-ws-secure-webapp >>> sample. On of the policy sets is: >>> >>> <!-- WS Security POLICY SETS --> >>> >>> <sca:policySet name="calc:wsAuthenticationPolicy" >>> >>> provides="sca:authentication" >>> >>> appliesTo="sca:service/sca:binding.ws"> >>> >>> <tuscany:wsConfigParam> >>> >>> <parameter name="InflowSecurity"> >>> >>> <action> >>> >>> >>> <items>UsernameToken</items> >>> >>> >>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass> >>> >>> </action> >>> >>> </parameter> >>> >>> </tuscany:wsConfigParam> >>> >>> </sca:policySet> >>> >>> >>> >>> There is named element Tuscany:wsConfigParam and a parameter name >>> InflowSecurity. I was wondering where do these come from , obviously there >>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can >>> I define my own, so if I want to have a policy to do foobar I can set up a >>> parameter named foobar? >>> >>> >>> >>> >>> >>> Mike Sacauskis >>> >>> >> >> >> >> -- >> Luciano Resende >> Apache Tuscany, Apache PhotArk >> http://people.apache.org/~lresende >> http://lresende.blogspot.com/ >> > > > > -- > Luciano Resende > Apache Tuscany, Apache PhotArk > http://people.apache.org/~lresende > http://lresende.blogspot.com/ > -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/