[weld-dev] WeldBootstrap in SE
Peter Royle
pete at screamingcoder.com
Wed Nov 4 08:53:46 EST 2009
Hi,
Line 128 of WeldBootstrap (core) seems to be causing some Servlet-
specific beans/classes to be registered regardless of the environment
being booted into. The only problem with this is that it breaks in the
SE environment due to the absence of HttpSession (try building the
WebBeans SE extension for example, the test will fail).
I've put in a temporary workaround (just locally) as follows, but this
is just a hack. Anyone close to this code able to offer a permanent
solution?
private final Set<Class<?>> beanClasses =
(Environments.SE.equals(environment))
? Arrays2.<Class<?>>asSet()
: Arrays2.<Class<?>>asSet
(ConversationImpl.class, ServletConversationManager.class,
NumericConversationIdGenerator.class, HttpSessionManager.class);
Cheers,
Pete R
More information about the weld-dev
mailing list