837838839840841842843
public SortBy sort(String propertyName, SortOrder order) { return new SortByImpl( property( propertyName ), order ); } public After after(Expression expr1, Expression expr2) { return new AfterImpl(expr1, expr2); }
841842843844845846847
public After after(Expression expr1, Expression expr2) { return new AfterImpl(expr1, expr2); } public After after(Expression expr1, Expression expr2, MatchAction matchAction) { return new AfterImpl(expr1, expr2, matchAction); }
4950515253545556
@Produces @ApplicationScoped public EntityManagerFactory produceFactory(EMFInfo info) { produceEvent.select(new BeforeImpl()).fire(new EMFNotification(null)); // let app know we're about to create EMF EntityManagerFactory entityManagerFactory = getFactory(info); produceEvent.select(new AfterImpl()).fire(new EMFNotification(entityManagerFactory)); // let app know we created EMF return entityManagerFactory; }