cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: cocoon-2.2/src/kernel/org/apache/cocoon/kernel/identification AbstractDescriptor.java
Date Wed, 31 Mar 2004 10:19:00 GMT
pier        2004/03/31 02:19:00

  Modified:    src/kernel/org/apache/cocoon/kernel/identification
                        AbstractDescriptor.java
  Log:
  Fixng block descriptor implementation. Blocks can also specify public
  libraries for resolution from wired blocks.
  
  Revision  Changes    Path
  1.2       +4 -4      cocoon-2.2/src/kernel/org/apache/cocoon/kernel/identification/AbstractDescriptor.java
  
  Index: AbstractDescriptor.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.2/src/kernel/org/apache/cocoon/kernel/identification/AbstractDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractDescriptor.java	30 Mar 2004 13:30:38 -0000	1.1
  +++ AbstractDescriptor.java	31 Mar 2004 10:19:00 -0000	1.2
  @@ -156,15 +156,15 @@
               /* Check access and store */
               String access = (this.isInterface() ? "public" : "private");
               access = current.getStringAttribute("access", access);
  -            if ("protected".equals(access)) {
  +            if ("public".equals(access)) {
  +                /* Public libraries available to interfaces and implems */
  +                publiclibs.add(url);
  +            } else if ("protected".equals(access)) {
                   /* Protected libraries available to interfaces and implems */
                   protectedlibs.add(url);
               } else if (("private".equals(access)) && (!this.isInterface())) {
                   /* Private libraries available to implementations only */
                   privatelibs.add(url);
  -            } else if (("public".equals(access)) && (this.isInterface())) {
  -                /* Public libraries available to interfaces only */
  -                publiclibs.add(url);
               } else {
                   /* Problems with library access */
                   StringBuffer message = new StringBuffer(512);
  
  
  

Mime
View raw message