Update of /var/cvs/src/org/mmbase/framework
In directory james.mmbase.org:/tmp/cvs-serv25792
Modified Files:
Framework.java
Log Message:
Finished DirectoryUrlConverter and extend MMBaseUrlConverter from it. Added a
method 'getBlock' on UrlConverter. Javadoc
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/framework
Index: Framework.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/Framework.java,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- Framework.java 26 Aug 2008 06:45:36 -0000 1.58
+++ Framework.java 1 Sep 2008 07:06:12 -0000 1.59
@@ -29,7 +29,7 @@
* @author Michiel Meeuwissen
* @author Nico Klasens
* @author André van Toly
- * @version $Id: Framework.java,v 1.58 2008/08/26 06:45:36 michiel Exp $
+ * @version $Id: Framework.java,v 1.59 2008/09/01 07:06:12 michiel Exp $
* @since MMBase-1.9
*/
public abstract class Framework {
@@ -52,6 +52,19 @@
/**
+ * The proposed parameter if the framework can be explicitely requested a
(block of a certain) component to render.
+ */
+ public static final Parameter<String> COMPONENT = new
Parameter<String>("component", String.class);
+
+ /**
+ * The proposed parameter if the framework can be explicitely requested a
block to render.
+ */
+ public static final Parameter<String> BLOCK = new
Parameter<String>("block", String.class);
+
+
+
+
+ /**
* Returns the framework. Never <code>null</code>.
* @return the framework
*/
@@ -124,11 +137,18 @@
/**
- * Returns the block which is specified by framework parameters.
+ * Returns the block which is specified by framework parameters. This is
used to explicitely
+ * point to a block, e.g. using mm:frameworkparam in taglib.
+ *
+ * This can be completely explicit, using [EMAIL PROTECTED] #COMPONENT} or
[EMAIL PROTECTED] #COMPONENT} and [EMAIL PROTECTED]
+ * #BLOCK}. but it can also be more subtle, like MMBaseUrlConverter which
also defined a unique
+ * block with [EMAIL PROTECTED]
org.mmbase.framework.basic.MMBaseUrlConverter#CATEGORY} (namely the first block
of
+ * that category).
+
* @param frameworkParameters framework parameters
* @return Block
*/
- public abstract Block getBlock(Parameters frameworkParameters);
+ public abstract Block getBlock(Parameters frameworkParameters) throws
FrameworkException;
/**
* Returns the block, which is currently rendering, or <code>null</code>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs