ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: Declaring and exporting constants in Woden
Date Mon, 17 Oct 2005 11:44:23 GMT
+1 to both 1)'s (same as John)

thanks,
dims

On 10/17/05, John Kaputin <KAPUTIN@uk.ibm.com> wrote:
> In Woden we currently use different conventions for declaring configuration
> constants for WSDLFactory and WSDLReader features and properties, as well
> as for WSDL-related constants.
>
> The WSDL-related constants are used in the implementation and are defined
> in org.apache.woden.internal.wsdl20.Contants. This is probably OK for now.
> We may need consider refactoring the 'wdl20' bit later, when adding support
> for wsdl 1.1.
>
> I think we need a common convention for how we declare constant values.  I
> think we should also export the Factory and Reader configuration constants
> in the API and should have a common convention for doing this too.   Please
> vote if you have a preference. My vote is +1 for both options 1) below.
>
> Possible conventions to declare constants are:
>
> 1) http://ws.apache.org/woden/<featureOrPropertyName>
>    (based on the actual Woden URL after incubation)
>
> 2) http://apache.org/woden/<featureOrPropertyName>
>    (based on an abbreviated Woden URL)
>
> 3) org.apache.woden.<featureOrPropertyName>
>    (based on Woden package name)
>
> Assuming we export configuration constants in the API, possible conventions
> are:
>
> 1) create public static final fields directly in the
> org.apache.woden.WSDLFactory and WSDLReader interfaces for the relevant
> constants.
>
> 2) create a new public class (e.g. org.apache.woden.WSDLConstants or
> WodenConstants), containing just public static final fields.
>
>
>
> ======= Current examples of constants declared in Woden =======
>
> org.apache.woden.WSDLFactory:-
>
>   private static final String PROPERTY_NAME =
>       "org.apache.woden.WSDLFactory";
>   private static final String PROPERTY_FILE_NAME =
>       "wsdl.properties";
>   private static final String DEFAULT_FACTORY_IMPL_NAME =
>       "org.apache.woden.internal.DOMWSDLFactory";
>
> org.apache.woden.internal.ReaderFeatures:-
>
>   public static String VALIDATION_FEATURE_ID =
>       "http://apache.org/woden/features/validation";
>
> org.apache.woden.internal.wsdl20.Constants:-
>
>   //Type systems and content model APIs
>   public static final String TYPE_XSD_2001 =
>       "http://www.w3.org/2001/XMLSchema";
>   public static final String API_W3C_DOM =
>       "org.w3c.dom";
>   public static final String API_W3C_XS =
>       "http://www.w3.org/Submission/xmlschema-api/";
>   public static final String API_APACHE_WS_XS =
>       "org.apache.ws.commons.schema";
>
>   public static final String FEATURE_VERBOSE =
>       "org.apache.woden.verbose";
>   public static final String FEATURE_IMPORT_DOCUMENTS =
>       "org.apache.woden.importDocuments";
>
>
>
> John Kaputin
> Web Services Development
> Hursley Laboratory
> IBM UK Ltd, MP211, Hursley Park, Winchester, SO21 2JN, UK.
> email:  kaputin@uk.ibm.com
> Tel/Fax: +44 (0)1962 817363  (internal 7-247363)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

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


Mime
View raw message