Author: reinhard
Date: Mon Oct 4 06:07:28 2004
New Revision: 51888
Added:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockDescriptor.java
- copied, changed from rev 47196,
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockDescriptor.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockProperty.java
- copied, changed from rev 47196,
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockProperty.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockRequirement.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockConnection.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockDescriptor.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockProperty.java
Modified:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/RemoteBlock.java
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/Wiring.java
Log:
- work on XML mappings
- some refactorings
Modified:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/RemoteBlock.java
==============================================================================
---
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/RemoteBlock.java
(original)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/RemoteBlock.java
Mon Oct 4 06:07:28 2004
@@ -15,6 +15,7 @@
*/
package org.apache.cocoon.blockdeployer.block;
+import org.apache.cocoon.blockdeployer.block.descriptor.BlockDescriptor;
import org.apache.cocoon.blockdeployer.repository.Locator;
Copied:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockDescriptor.java
(from rev 47196,
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockDescriptor.java)
==============================================================================
---
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockDescriptor.java
(original)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockDescriptor.java
Mon Oct 4 06:07:28 2004
@@ -13,9 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.cocoon.blockdeployer.block;
+package org.apache.cocoon.blockdeployer.block.descriptor;
+import java.util.Collection;
import java.util.Iterator;
+
/**
* The BlockDescriptor contains meta information about a Block.
Copied:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockProperty.java
(from rev 47196,
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockProperty.java)
==============================================================================
---
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/BlockProperty.java
(original)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockProperty.java
Mon Oct 4 06:07:28 2004
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.cocoon.blockdeployer.block;
+package org.apache.cocoon.blockdeployer.block.descriptor;
/**
* A BlockProperty is a property that must/can be set at
Added:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockRequirement.java
==============================================================================
--- (empty file)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/block/descriptor/BlockRequirement.java
Mon Oct 4 06:07:28 2004
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.blockdeployer.block.descriptor;
+
+/**
+ * @since 0.1
+ */
+public interface BlockRequirement {
+
+ public String getBlockId();
+ public String getName();
+
+}
Added:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockConnection.java
==============================================================================
--- (empty file)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockConnection.java
Mon Oct 4 06:07:28 2004
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.blockdeployer.wiring;
+
+/**
+ * @since 03.10.2004
+ */
+public interface WiredBlockConnection {
+
+ public String getName();
+
+ public String getConnectedBlockId();
+
+}
Added:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockDescriptor.java
==============================================================================
--- (empty file)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockDescriptor.java
Mon Oct 4 06:07:28 2004
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.blockdeployer.wiring;
+
+import java.util.Collection;
+
+/**
+ * @since 03.10.2004
+ */
+public interface WiredBlockDescriptor {
+
+ public String getId();
+
+ public String getLocation();
+
+ public String getMountPath();
+
+ public Collection getProperties();
+
+ public Collection getConnections();
+
+}
Added:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockProperty.java
==============================================================================
--- (empty file)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/WiredBlockProperty.java
Mon Oct 4 06:07:28 2004
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.blockdeployer.wiring;
+
+/**
+ * @since 03.10.2004
+ */
+public interface WiredBlockProperty {
+
+ public String getName();
+
+ public String getValue();
+
+}
Modified:
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/Wiring.java
==============================================================================
---
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/Wiring.java
(original)
+++
cocoon/whiteboard/block-deployer/src/api/org/apache/cocoon/blockdeployer/wiring/Wiring.java
Mon Oct 4 06:07:28 2004
@@ -15,9 +15,13 @@
*/
package org.apache.cocoon.blockdeployer.wiring;
+import java.util.Collection;
+
/**
* @since 0.1
*/
-public class Wiring {
+public interface Wiring {
+
+ public Collection getBlockDescriptors();
}