This patch (committed) implements a missing method in
BeanContextServicesSupport:
2006-11-24 David Gilbert <[EMAIL PROTECTED]>
* java/beans/beancontext/BeanContextServicesSupport.java
(getChildBeanContextServicesListener): Implemented.
A Mauve test is already committed.
Regards,
Dave
Index: java/beans/beancontext/BeanContextServicesSupport.java
===================================================================
RCS file: /sources/classpath/classpath/java/beans/beancontext/BeanContextServicesSupport.java,v
retrieving revision 1.11
diff -u -r1.11 BeanContextServicesSupport.java
--- java/beans/beancontext/BeanContextServicesSupport.java 20 Nov 2006 01:30:24 -0000 1.11
+++ java/beans/beancontext/BeanContextServicesSupport.java 24 Nov 2006 04:35:41 -0000
@@ -609,11 +609,22 @@
return (BeanContextServices) beanContextChildPeer;
}
+ /**
+ * Returns <code>child</code> as an instance of
+ * [EMAIL PROTECTED] BeanContextServicesListener}, or <code>null</code> if
+ * <code>child</code> does not implement that interface.
+ *
+ * @param child the child (<code>null</code> permitted).
+ *
+ * @return The child cast to [EMAIL PROTECTED] BeanContextServicesListener}.
+ */
protected static final BeanContextServicesListener
- getChildBeanContextServicesListener (Object child)
- throws NotImplementedException
+ getChildBeanContextServicesListener(Object child)
{
- throw new Error ("Not implemented");
+ if (child instanceof BeanContextServicesListener)
+ return (BeanContextServicesListener) child;
+ else
+ return null;
}
/**