Skip to content

Commit

Permalink
Fixed a few more tests and added Singleton as EJB type.
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1228 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Jan 24, 2009
1 parent 81ea300 commit 92eb98f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import java.util.Set;

import javax.ejb.MessageDriven;
import javax.ejb.Singleton;
import javax.ejb.Stateful;
import javax.ejb.Stateless;

Expand Down Expand Up @@ -37,7 +38,7 @@ protected static Iterable<Class<?>> discoverEjbs(Iterable<Class<?>> webBeanClass
Set<Class<?>> ejbs = new HashSet<Class<?>>();
for (Class<?> clazz : webBeanClasses)
{
if (clazz.isAnnotationPresent(Stateless.class) || clazz.isAnnotationPresent(Stateful.class) || clazz.isAnnotationPresent(MessageDriven.class))
if (clazz.isAnnotationPresent(Stateless.class) || clazz.isAnnotationPresent(Stateful.class) || clazz.isAnnotationPresent(MessageDriven.class) || clazz.isAnnotationPresent(Singleton.class))
{
ejbs.add(clazz);
}
Expand Down

0 comments on commit 92eb98f

Please sign in to comment.