[Yanel-commits] rev 29326 - public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf

michi at wyona.com michi at wyona.com
Wed Nov 28 22:00:45 CET 2007


Author: michi
Date: 2007-11-28 22:00:45 +0100 (Wed, 28 Nov 2007)
New Revision: 29326

Modified:
   public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java
Log:
use ConfigurableViewDescriptor otherwise the BasicXMLResource will have a problem

Modified: public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java	2007-11-28 20:46:50 UTC (rev 29325)
+++ public/yanel/contributions/realms/foaf/src/resources/foaf/src/java/org/wyona/yanel/impl/resources/foaf/FOAFResource.java	2007-11-28 21:00:45 UTC (rev 29326)
@@ -9,6 +9,7 @@
 import org.wyona.yanel.core.attributes.viewable.View;
 import org.wyona.yanel.core.attributes.viewable.ViewDescriptor;
 import org.wyona.yanel.impl.resources.BasicXMLResource;
+import org.wyona.yanel.impl.resources.xml.ConfigurableViewDescriptor;
 
 import org.apache.log4j.Category;
 
@@ -136,18 +137,18 @@
      *
      */
     public ViewDescriptor[] getViewDescriptors() {
-        ViewDescriptor[] vd = new ViewDescriptor[4];
+        ConfigurableViewDescriptor[] vd = new ConfigurableViewDescriptor[4];
 
-        vd[0] = new ViewDescriptor("default");
+        vd[0] = new ConfigurableViewDescriptor("default");
         vd[0].setMimeType(getMimeType(null));
 
-        vd[1] = new ViewDescriptor("source");
+        vd[1] = new ConfigurableViewDescriptor("source");
         vd[1].setMimeType(getMimeType("source"));
 
-        vd[2] = new ViewDescriptor("rdf+xml");
+        vd[2] = new ConfigurableViewDescriptor("rdf+xml");
         vd[2].setMimeType(getMimeType("rdf+xml"));
 
-        vd[3] = new ViewDescriptor("atom");
+        vd[3] = new ConfigurableViewDescriptor("atom");
         vd[3].setMimeType(getMimeType("atom"));
         return vd;
     }



More information about the Yanel-commits mailing list