package org.jboss.webbeans.test.tck;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Set;

import javax.webbeans.manager.Bean;

import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.bean.AbstractClassBean;
import org.jboss.webbeans.bean.EnterpriseBean;
import org.jboss.webbeans.bean.ProducerMethodBean;
import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.tck.api.Beans;

public class BeansImpl implements Beans
{

   public <T> Bean<T> createSimpleBean(Class<T> clazz)
   {
      return SimpleBean.of(clazz, CurrentManager.rootManager());
   }

   public <T> Bean<T> createProducerMethodBean(Method method, Bean<?> declaringBean)
   {
      if (declaringBean instanceof AbstractClassBean)
      {
         return ProducerMethodBean.of(method, (AbstractClassBean<?>) declaringBean, CurrentManager.rootManager());
      }
      else
      {
         throw new IllegalStateException("Cannot create a producer method from a bean that wasn't created by the RI " + declaringBean);
      }
   }

   public <T> Bean<T> createEnterpriseBean(Class<T> clazz)
   {
      return EnterpriseBean.of(clazz, CurrentManager.rootManager());
   }

   public Set<Class<?>> getRequiredTypes(Bean<?> bean)
   {
      // TODO Auto-generated method stub
      return null;
   }

   public Set<Class<? extends Annotation>> getSupportedScopes(Bean<?> bean)
   {
      // TODO Auto-generated method stub
      return null;
   }

}

@@ -52,84 +52,22 @@
 ang.
-annotation.Annotation;%0Aimport java.lang.reflect.Method;%0Aimport java.util.Set
+reflect.Method
 ;%0A%0Ai
@@ -1138,279 +1138,6 @@
  %7D%0A%0A
-   public Set%3CClass%3C?%3E%3E getRequiredTypes(Bean%3C?%3E bean)%0A   %7B%0A      // TODO Auto-generated method stub%0A      return null;%0A   %7D%0A%0A   public Set%3CClass%3C? extends Annotation%3E%3E getSupportedScopes(Bean%3C?%3E bean)%0A   %7B%0A      // TODO Auto-generated method stub%0A      return null;%0A   %7D%0A%0A
 %7D%0A

remove unecessary methods