public QueryBuilder build(RepositoryMethod method, CdiQueryInvocationContext context)
{
DependentProvider<QueryBuilder> builder = BeanProvider.getDependent(
QueryBuilder.class, LITERALS.get(method.getMethodType()));
context.addDestroyable(new DependentProviderDestroyable(builder));
if (method.returns(QueryResult.class))
{
return new WrappedQueryBuilder(builder.get());
}
return builder.get();