Author: pete.muir(a)jboss.org
Date: 2009-06-29 06:09:46 -0400 (Mon, 29 Jun 2009)
New Revision: 2924
Modified:
tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
Log:
mark destroy method @Deprecated
Modified: tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java 2009-06-28 21:39:24
UTC (rev 2923)
+++ tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java 2009-06-29 10:09:46
UTC (rev 2924)
@@ -72,6 +72,7 @@
*/
public <T> T getEnterpriseBean(Class<? extends T> beanType, Class<T>
localInterface);
+ @Deprecated
public <T> void destroyAndRemoveBeanInstance(Bean<T> bean, T instance);
public <T> T createBeanInstance(Bean<T> bean);
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java 2009-06-28
21:39:24 UTC (rev 2923)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java 2009-06-29
10:09:46 UTC (rev 2924)
@@ -191,6 +191,7 @@
* @param bean the bean
* @param instance the instance to destroy
*/
+ @Deprecated
public <T> void destroyAndRemoveBeanInstance(Bean<T> bean, T instance)
{
getCurrentConfiguration().getBeans().destroyAndRemoveBeanInstance(bean, instance);