Author: manik.surtani(a)jboss.com
Date: 2009-03-11 13:29:26 -0400 (Wed, 11 Mar 2009)
New Revision: 7901
Modified:
core/trunk/src/main/java/org/jboss/cache/Cache.java
core/trunk/src/main/java/org/jboss/cache/CacheSPI.java
Log:
JBCACHE-1488 - getChildrenNames() to be moveed from CacheSPI to Cache
Modified: core/trunk/src/main/java/org/jboss/cache/Cache.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/Cache.java 2009-03-11 17:25:40 UTC (rev
7900)
+++ core/trunk/src/main/java/org/jboss/cache/Cache.java 2009-03-11 17:29:26 UTC (rev
7901)
@@ -263,8 +263,24 @@
*/
Node<K, V> getNode(String fqn);
+ /**
+ * Returns all children of a given node. Returns an empty set if there are no
children.
+ * The set is unmodifiable.
+ *
+ * @param fqn The fully qualified name of the node
+ * @return Set an unmodifiable set of children names, Object.
+ */
+ Set<Object> getChildrenNames(Fqn fqn);
/**
+ * Convenience method that takes a String representation of an Fqn. Otherwise
identical to {@link #getChildrenNames(Fqn)}
+ *
+ * @param fqn as a string
+ * @return Set an unmodifiable set of children names, Object.
+ */
+ Set<String> getChildrenNames(String fqn);
+
+ /**
* Convenience method that allows for direct access to the data in a {@link Node}.
*
* @param fqn <b><i>absolute</i></b> {@link Fqn} to the {@link
Node} to be accessed.
Modified: core/trunk/src/main/java/org/jboss/cache/CacheSPI.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheSPI.java 2009-03-11 17:25:40 UTC (rev
7900)
+++ core/trunk/src/main/java/org/jboss/cache/CacheSPI.java 2009-03-11 17:29:26 UTC (rev
7901)
@@ -296,23 +296,6 @@
boolean exists(String fqn);
/**
- * Returns all children of a given node. Returns an empty set if there are no
children.
- * The set is unmodifiable.
- *
- * @param fqn The fully qualified name of the node
- * @return Set an unmodifiable set of children names, Object.
- */
- Set<Object> getChildrenNames(Fqn fqn);
-
- /**
- * Convenience method that takes a String representation of an Fqn. Otherwise
identical to {@link #getChildrenNames(Fqn)}
- *
- * @param fqn as a string
- * @return Set an unmodifiable set of children names, Object.
- */
- Set<String> getChildrenNames(String fqn);
-
- /**
* Returns the component registry associated with this cache instance.
*
* @see org.jboss.cache.factories.ComponentRegistry
Show replies by date