You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2007/02/12 17:50:43 UTC

svn commit: r506533 - in /tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase: channel/ExposerKeyedTilesContainerFactory.java impl/mgmt/ExposerMutableKeyedTilesContainer.java

Author: apetrelli
Date: Mon Feb 12 08:50:42 2007
New Revision: 506533

URL: http://svn.apache.org/viewvc?view=rev&rev=506533
Log:
TILES-12
First attempt to create a container that exposes definitions with a public method.

Added:
    tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java   (with props)
    tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java   (with props)

Added: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java?view=auto&rev=506533
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java (added)
+++ tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java Mon Feb 12 08:50:42 2007
@@ -0,0 +1,43 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.tiles.showcase.channel;
+
+import org.apache.tiles.TilesException;
+import org.apache.tiles.factory.KeyedDefinitionsFactoryTilesContainerFactory;
+import org.apache.tiles.mgmt.MutableTilesContainer;
+import org.apache.tiles.showcase.impl.mgmt.ExposerMutableKeyedTilesContainer;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ExposerKeyedTilesContainerFactory extends
+        KeyedDefinitionsFactoryTilesContainerFactory {
+
+    @Override
+    public MutableTilesContainer createMutableTilesContainer(Object context) throws TilesException {
+        ExposerMutableKeyedTilesContainer container =
+            new ExposerMutableKeyedTilesContainer();
+        initializeContainer(context, container);
+        return container;
+    }
+
+}

Propchange: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/channel/ExposerKeyedTilesContainerFactory.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java?view=auto&rev=506533
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java (added)
+++ tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java Mon Feb 12 08:50:42 2007
@@ -0,0 +1,41 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.tiles.showcase.impl.mgmt;
+
+import org.apache.tiles.context.TilesRequestContext;
+import org.apache.tiles.definition.ComponentDefinition;
+import org.apache.tiles.definition.DefinitionsFactoryException;
+import org.apache.tiles.impl.mgmt.CachingKeyedDefinitionsFactoryTilesContainer;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class ExposerMutableKeyedTilesContainer extends
+        CachingKeyedDefinitionsFactoryTilesContainer {
+
+    @Override
+    public ComponentDefinition getDefinition(String definition,
+            TilesRequestContext context) throws DefinitionsFactoryException {
+        return super.getDefinition(definition, context);
+    }
+
+}

Propchange: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/examples/trunk/tiles-showcase/src/main/java/org/apache/tiles/showcase/impl/mgmt/ExposerMutableKeyedTilesContainer.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL