You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2008/03/12 20:19:33 UTC

svn commit: r636465 - in /incubator/tuscany/java/sca/demos/bigbank-account/src/main: java/bigbank/account/checking/ resources/ resources/META-INF/services/

Author: svkrish
Date: Wed Mar 12 12:19:26 2008
New Revision: 636465

URL: http://svn.apache.org/viewvc?rev=636465&view=rev
Log:
adding policy related things

Modified:
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/CheckingsAccount.composite
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/definitions.xml

Modified: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java?rev=636465&r1=636464&r2=636465&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java Wed Mar 12 12:19:26 2008
@@ -19,10 +19,12 @@
 package bigbank.account.checking;
 
 import org.osoa.sca.annotations.Remotable;
+import org.osoa.sca.annotations.Service;
 
 /**
  * @version $$Rev$$ $$Date$$
  */
+@Service
 @Remotable
 public interface CheckingAccountService {
     

Modified: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/CheckingsAccount.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/CheckingsAccount.composite?rev=636465&r1=636464&r2=636465&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/CheckingsAccount.composite (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/CheckingsAccount.composite Wed Mar 12 12:19:26 2008
@@ -21,6 +21,7 @@
 	targetNamespace="http://bigbank/checkings"
 	xmlns:bbck="http://bigbank/checkings"
 	xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
+	xmlns:bba="http://bigbankAccount"
 	name="CheckingsAccountDept">
 	
     <service name="CheckingsAccountService" promote="CheckingAccountServiceComponent" requires="authentication">
@@ -29,6 +30,6 @@
     </service>
 
     <component name="CheckingAccountServiceComponent">
-        <implementation.java class="bigbank.account.checking.CheckingAccountServiceImpl" requires="authorization"/>
+        <implementation.java class="bigbank.account.checking.CheckingAccountServiceImpl" requires="bba:authorization"/>
     </component>
 </composite>

Modified: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler?rev=636465&r1=636464&r2=636465&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler Wed Mar 12 12:19:26 2008
@@ -17,4 +17,4 @@
 # 
 # PolicyHandlerClasses to interpret specific PolicyModels against specific QoS infrastructures
 # handler classname;qname=<policy intent addressed>;model=<policy model class>
-bigbank.account.security.CheckingsDeptAuthorizationPolicyHandler;intent=http://bigbank/checkings#chkDeptAuthorization,model=bigbank.account.security.CheckingsDeptAuthPolicy
+bigbank.account.security.CheckingsDeptAuthorizationPolicyHandler;intent=http://bigbankAccount#authorization,model=bigbank.account.security.CheckingsDeptAuthPolicy

Modified: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/definitions.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/definitions.xml?rev=636465&r1=636464&r2=636465&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/definitions.xml (original)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/definitions.xml Wed Mar 12 12:19:26 2008
@@ -22,7 +22,8 @@
  			xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
  			xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
 			xmlns:chk="http://bigbank/checkings"
- 			xmlns:bb="http://bigbank">
+ 			xmlns:bb="http://bigbank"
+ 			xmlns:bba="http://bigbankAccount">
 
   
 <sca:intent name="authorization" 
@@ -47,7 +48,7 @@
  </sca:policySet>
  
  <sca:policySet name="chkDeptAuthorizationPolicy"
- 	provides="authorization"
+ 	provides="bba:authorization"
  	appliesTo="sca:implementation.java">
  	<chk:AuthPolicy>
  		<!-- need to evolve what should go in here -->



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