Skip to content

Commit

Permalink
SOLDER-53 wrap expression factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Dec 19, 2010
1 parent a090972 commit 8eeae37
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -19,6 +19,7 @@
import javax.el.ExpressionFactory;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.BeanManager;

/**
* Responsible for producing the {@link ExpressionFactory}
Expand All @@ -31,9 +32,9 @@ class ExpressionFactoryProducer

@Produces
@ApplicationScoped
ExpressionFactory createExpressionFactory()
ExpressionFactory createExpressionFactory(BeanManager beanManager)
{
return ExpressionFactory.newInstance();
return beanManager.wrapExpressionFactory(ExpressionFactory.newInstance());
}

}

0 comments on commit 8eeae37

Please sign in to comment.