You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2002/06/12 12:44:26 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/content ContentImpl.java NodeProperty.java

pnever      2002/06/12 03:44:26

  Modified:    src/share/org/apache/slide/content ContentImpl.java
                        NodeProperty.java
  Log:
  Missing default value for global Domain parameter.
  
  Revision  Changes    Path
  1.42      +8 -6      jakarta-slide/src/share/org/apache/slide/content/ContentImpl.java
  
  Index: ContentImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/ContentImpl.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- ContentImpl.java	22 May 2002 16:23:56 -0000	1.41
  +++ ContentImpl.java	12 Jun 2002 10:44:26 -0000	1.42
  @@ -89,6 +89,8 @@
       
       
       // -------------------------------------------------------------- Constants
  +    protected static final String I_URIREDIRECTORCLASS         = "uriRedirectorClass";
  +    protected static final String I_URIREDIRECTORCLASS_DEFAULT = "org.apache.slide.webdav.util.DeltavUriRedirector";
       
       
       protected static final int PRE_STORE = 0;
  @@ -100,7 +102,7 @@
       protected static Class uriRedirectorClass;
       static {
           try {
  -            String uriRedirectorClassName = Domain.getParameter("uriRedirectorClass");
  +            String uriRedirectorClassName = Domain.getParameter(I_URIREDIRECTORCLASS, I_URIREDIRECTORCLASS_DEFAULT);
                   uriRedirectorClass = Class.forName( uriRedirectorClassName );
               }
           catch( Exception x ) {
  
  
  
  1.17      +8 -5      jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java
  
  Index: NodeProperty.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- NodeProperty.java	28 May 2002 11:13:37 -0000	1.16
  +++ NodeProperty.java	12 Jun 2002 10:44:26 -0000	1.17
  @@ -92,6 +92,9 @@
       public static final String SLIDE_NAMESPACE =
           "http://jakarta.apache.org/slide/";
       
  +    protected static final String I_STANDARDLIVEPROPERTIESCLASS         = "standardLivePropertiesClass";
  +    protected static final String I_STANDARDLIVEPROPERTIESCLASS_DEFAULT = "org.apache.slide.webdav.util.resourcekind.AbstractResourceKind";
  +    
       public static Set allLiveProperties;
       public static Set allProtectedProperties;
       public static Set allComputedProperties;
  @@ -99,7 +102,7 @@
       static {
           try {
               if (Domain.isInitialized()) {
  -                Class slpc = Class.forName( Domain.getParameter("standardLivePropertiesClass") );
  +                Class slpc = Class.forName( Domain.getParameter(I_STANDARDLIVEPROPERTIESCLASS, I_STANDARDLIVEPROPERTIESCLASS_DEFAULT) );
                   Method lp = slpc.getMethod( "getAllLiveProperties", new Class[]{} );
                   allLiveProperties = (Set)lp.invoke( null, new Object[]{} ); // obj=null since method is static
                   Method pp = slpc.getMethod( "getAllProtectedProperties", new Class[]{} );
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>