cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] BlocksWiring Blocks Fri Aug 29 04:00:03 2003
Date Fri, 29 Aug 2003 02:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=BlocksWiring , version: 1 on Fri Aug 29 01:22:11
2003 by 67.21.159.90

New page created:
+ 
+ !Proposed xml schema example for wiring.xml
+ {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <blocks version="1.0">
+ 	<block uri="cob:mycompany.com/webmail/1.3.43" wire-id="384938958499">
+ 		<mount>/mail/</mount>
+ 		<connections>
+ 			<connection name="external-skin">cob:yetanothercompany.com/skins/fancy/1.2.2</connection>
+ 			<connection name="internal-skin">cob:mycompany.com/skins/corporate/34.3.345</connection>
+ 			<connection name="repository">cob:mycompany.com/repositories/email/exchange/3.2.1</connection>
+ 		</connections>
+ 		<configuration>
+ 			<param name="user">guest</param>
+ 			<param name="password">sj3u493</param>
+ 		</configuration>
+ 	</block>
+ 	<block uri="cob:mycompany.com/repositories/email/exchange/3.2.1" wire-id="394781274834">
+ 		<configuration>
+ 			<param name="host">mail.blah.org</param>
+ 		</configuration>
+ 	</block>
+ 	<block uri="cob:yetanothercompany.com/skins/fancy/1.2.2" wire-id="947384127832"/>
+ 	<block uri="cob:mycompany.com/skins/corporate/34.3.345" wire-id="746394782637"/>
+ </blocks>
+ }}}
+ 
+ ----
+ !Relevant sections from original RT
+ {{{
+   cob:mycompany.com/webmail/1.3.43
+    located at -> WEB-INF/blocks/384938958499
+    mounted on -> /mail/
+    "external-skin" -> cob:yetanothercompany.com/skins/fancy/1.2.2
+    "internal-skin" -> cob:mycompany.com/skins/corporate/34.3.345
+    "repository" -> cob:mycompany.com/repositories/email/exchange/3.2.1
+    configured as:
+     user -> "guest"
+     password -> "sj3u493"
+ 
+   cob:mycompany.com/repositories/email/exchange/3.2.1
+    located at -> WEB-INF/blocks/394781274834
+    configured as:
+      host -> "mail.blah.org"
+ 
+   cob:yetanothercompany.com/skins/fancy/1.2.2
+    located at -> WEB-INF/blocks/947384127832
+ 
+   cob:mycompany.com/skins/corporate/34.3.345
+    located at -> WEB-INF/blocks/746394782637
+ }}}
+ the file system layout (relative to the cocoon webapp context) is
+ {{{
+     [-] WEB-INF
+      L___ [-] blocks
+            L___ wiring.xml
+            L___ [-] 384938958499
+            |     L___ [-] BLOCK-INF
+            |     |     L___ block.xml
+            |     L_ (the contents of cob:mycompany.com/webmail/1.3.43)
+            L___ [-] 947384127832
+            |     L___ [-] BLOCK-INF
+            |     |     L___ block.xml
+            |     L_ (the contents of 
+ cob:yetanothercompany.com/skins/fancy/1.2.2)
+            L___ [-] 746394782637
+            |     L___ [-] BLOCK-INF
+            |     |     L___ block.xml
+            |     L_ (the contents of 
+ cob:mycompany.com/skins/corporate/34.3.345)
+            L___ [-] 394781274834
+                  L___ [-] BLOCK-INF
+                  |     L___ block.xml
+                  L_ (the contents of 
+ cob:mycompany.com/repositories/email/exchange/3.2.1
+ }}}
+ where
+ 
+   wiring.xml contains the block IDs (which also identifies their 
+ location on disk) wiring, mounting and configurations.
+ 
+   block.xml contains the block metadata (which belong to the block and 
+ cannot be changed at deployment time).
+ 
+ NOTE: if the location path of the block is relative, it is searched by 
+ starting from the cocoon war context. The block content is *always* 
+ extracted from the archives and saves "as is" inside the folder.
+ 
+ NOTE (development time): in order to simplify block creation and 
+ development, it will be possible to explicity indicate the location of 
+ an already existing and extracted block implementation on disk. The 
+ block manager should also have autoreloading features (configurable, of 
+ course) that should reload the configurations, the wiring and the 
+ exposed components when they are changed.
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=Blocks , version: 19 on Fri Aug 29 01:06:35
2003 by 67.21.159.90

+ !Blocks Implementation Workspace
+ 
+ * [BlocksWiring]
+ 
+ * [BlocksCob]
+ 
+ ----
+ 
+ 
+ * [cocoon-dev blocks discussion (Implementing Blocks RT, August 2003)|http://marc.theaimsgroup.com/?t=106134591200003&r=1&w=2]



Mime
View raw message