cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: rev 54243 - cocoon/whiteboard/block-deployer/src/impl/org/apache/cocoon/blockdeployer/block
Date Sun, 10 Oct 2004 11:53:21 GMT
Author: reinhard
Date: Sun Oct 10 04:53:20 2004
New Revision: 54243

Modified:
   cocoon/whiteboard/block-deployer/src/impl/org/apache/cocoon/blockdeployer/block/RealRemoteBlock.java
Log:
over designed (merging Block with RemoteBlock)
(RemoteBlock to be renamed to Block later)

Modified: cocoon/whiteboard/block-deployer/src/impl/org/apache/cocoon/blockdeployer/block/RealRemoteBlock.java
==============================================================================
--- cocoon/whiteboard/block-deployer/src/impl/org/apache/cocoon/blockdeployer/block/RealRemoteBlock.java
(original)
+++ cocoon/whiteboard/block-deployer/src/impl/org/apache/cocoon/blockdeployer/block/RealRemoteBlock.java
Sun Oct 10 04:53:20 2004
@@ -15,7 +15,8 @@
  */
 package org.apache.cocoon.blockdeployer.block;
 
-import org.apache.cocoon.blockdeployer.block.Block;
+import java.io.InputStream;
+
 import org.apache.cocoon.blockdeployer.block.RemoteBlock;
 import org.apache.cocoon.blockdeployer.block.descriptor.BlockDescriptor;
 import org.apache.cocoon.blockdeployer.repository.Locator;
@@ -26,8 +27,8 @@
 public class RealRemoteBlock implements RemoteBlock {
 
     private Locator locator;
-    private Block block;
     private BlockDescriptor blockDescriptor;
+    private String blockId;
     
     public Locator getLocator() {
         return this.locator;
@@ -37,20 +38,24 @@
         this.locator = locator;
     }
 
-    public Block getBlock() {
-        return this.block;
-    }
-    
-    public void setBlock(Block block) {
-        this.block = block;
-    }
-
     public BlockDescriptor getBlockDescriptor() {
         return this.blockDescriptor;
     }
     
     public void setBlockDescriptor(BlockDescriptor blockDescriptor) {
         this.blockDescriptor = blockDescriptor;
+    }
+
+    public InputStream getStream() throws Exception {
+        return null;
+    }
+    
+    protected void setBlockId(String blockId) {
+        this.blockId = blockId;
+    }
+
+    public String getBlockId() {
+        return this.blockId;
     }
     
 }

Mime
View raw message