Author: jonesde
Date: Wed Sep 12 01:03:11 2007 New Revision: 574829 URL: http://svn.apache.org/viewvc?rev=574829&view=rev Log: Changed service defs to refer to simple-method files by component:// urls instead of classpath resource locations; now that this is in removed the script directory from the classpath; this is the first step in doing this across the project to be less classpath dependent Modified: ofbiz/trunk/framework/example/ofbiz-component.xml ofbiz/trunk/framework/example/servicedef/services.xml Modified: ofbiz/trunk/framework/example/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/ofbiz-component.xml?rev=574829&r1=574828&r2=574829&view=diff ============================================================================== --- ofbiz/trunk/framework/example/ofbiz-component.xml (original) +++ ofbiz/trunk/framework/example/ofbiz-component.xml Wed Sep 12 01:03:11 2007 @@ -27,7 +27,6 @@ <!-- place the config directory on the classpath to access configuration files --> <classpath type="dir" location="config"/> <classpath type="dir" location="dtd"/> - <classpath type="dir" location="script"/> <!-- load single or multiple external libraries --> <classpath type="jar" location="build/lib/*"/> @@ -55,5 +54,4 @@ location="webapp/example" base-permission="OFBTOOLS" mount-point="/example"/> - </ofbiz-component> Modified: ofbiz/trunk/framework/example/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/servicedef/services.xml?rev=574829&r1=574828&r2=574829&view=diff ============================================================================== --- ofbiz/trunk/framework/example/servicedef/services.xml (original) +++ ofbiz/trunk/framework/example/servicedef/services.xml Wed Sep 12 01:03:11 2007 @@ -26,7 +26,7 @@ <!-- Example & Related Services --> <service name="createExample" default-entity-name="Example" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExample" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="createExample" auth="true"> <description>Create a Example</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="OUT" optional="false"/> @@ -36,7 +36,7 @@ <override name="exampleName" optional="false"/> </service> <service name="updateExample" default-entity-name="Example" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="updateExample" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="updateExample" auth="true"> <description>Update a Example</description> <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> @@ -44,13 +44,13 @@ <attribute name="oldStatusId" type="String" mode="OUT" optional="false"/> </service> <service name="deleteExample" default-entity-name="Example" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExample" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExample" auth="true"> <description>Delete a Example</description> <permission-service service-name="exampleGenericPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="createExampleStatus" default-entity-name="ExampleStatus" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleStatus" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleStatus" auth="true"> <description>Create a ExampleStatus</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="all" mode="IN" optional="false"> @@ -60,7 +60,7 @@ </service> <service name="createExampleItem" default-entity-name="ExampleItem" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleItem" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleItem" auth="true"> <description>Create a ExampleItem</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> @@ -69,14 +69,14 @@ <override name="description" optional="false"/> </service> <service name="updateExampleItem" default-entity-name="ExampleItem" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="updateExampleItem" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="updateExampleItem" auth="true"> <description>Update a ExampleItem</description> <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteExampleItem" default-entity-name="ExampleItem" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExampleItem" auth="true"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExampleItem" auth="true"> <description>Delete a ExampleItem</description> <permission-service service-name="exampleGenericPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> @@ -84,7 +84,7 @@ <!-- ExampleFeature Services --> <service name="createExampleFeature" default-entity-name="ExampleFeature" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeature" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeature" auth="true"> <description>Create a ExampleFeature</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="OUT" optional="false"/> @@ -92,21 +92,21 @@ <override name="description" optional="false"/> </service> <service name="updateExampleFeature" default-entity-name="ExampleFeature" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeature" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeature" auth="true"> <description>Update a ExampleFeature</description> <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteExampleFeature" default-entity-name="ExampleFeature" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeature" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeature" auth="true"> <description>Delete a ExampleFeature</description> <permission-service service-name="exampleGenericPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="createExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeatureAppl" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeatureAppl" auth="true"> <description>Create a ExampleFeatureAppl</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> @@ -114,14 +114,14 @@ <override name="fromDate" optional="true"/> </service> <service name="updateExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeatureAppl" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeatureAppl" auth="true"> <description>Update a ExampleFeatureAppl</description> <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple" - location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeatureAppl" auth="true"> + location="component://example/script/org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeatureAppl" auth="true"> <description>Delete a ExampleFeatureAppl</description> <permission-service service-name="exampleGenericPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> @@ -129,13 +129,13 @@ <!-- Permission Services --> <service name="exampleGenericPermission" engine="simple" - location="org/ofbiz/example/ExamplePermissionServices.xml" invoke="exampleGenericPermission"> + location="component://example/script/org/ofbiz/example/ExamplePermissionServices.xml" invoke="exampleGenericPermission"> <implements service="permissionInterface"/> </service> <!-- Example ServiceTest Service --> <service name="testCreateExampleService" engine="simple" - location="org/ofbiz/example/example/ExampleServices.xml" invoke="testCreateExampleService"> + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml" invoke="testCreateExampleService"> <implements service="testServiceInterface"/> </service> </services> |
Free forum by Nabble | Edit this page |