use of org.eclipse.jnosql.mapping.reflection.ClassMappings in project jnosql-diana by eclipse.
the class BeanManagersTest method shouldInstanceWithQualifierWithCurrentBeanManager.
@Test
public void shouldInstanceWithQualifierWithCurrentBeanManager() {
final ClassMappings classMappings = BeanManagers.getInstance(ClassMappings.class, new Default.Literal());
assertNotNull(classMappings);
}
use of org.eclipse.jnosql.mapping.reflection.ClassMappings in project jnosql-diana by eclipse.
the class BeanManagersTest method shouldInstanceWithQualifier.
@Test
public void shouldInstanceWithQualifier() {
final ClassMappings classMappings = BeanManagers.getInstance(ClassMappings.class, new Default.Literal(), beanManager);
assertNotNull(classMappings);
}
use of org.eclipse.jnosql.mapping.reflection.ClassMappings in project jnosql-diana by eclipse.
the class BeanManagersTest method shouldInstance.
@Test
public void shouldInstance() {
final ClassMappings classMappings = BeanManagers.getInstance(ClassMappings.class, beanManager);
assertNotNull(classMappings);
}
use of org.eclipse.jnosql.mapping.reflection.ClassMappings in project jnosql-diana by eclipse.
the class RepositoryGraphBean method create.
@Override
public Repository create(CreationalContext<Repository> creationalContext) {
ClassMappings classMappings = getInstance(ClassMappings.class);
GraphTemplate repository = provider.isEmpty() ? getInstance(GraphTemplate.class) : getInstance(GraphTemplate.class, DatabaseQualifier.ofGraph(provider));
GraphConverter converter = getInstance(GraphConverter.class);
Graph graph = provider.isEmpty() ? getInstance(Graph.class) : getInstance(Graph.class, DatabaseQualifier.ofGraph(provider));
Converters converters = getInstance(Converters.class);
GraphRepositoryProxy handler = new GraphRepositoryProxy(repository, classMappings, type, graph, converter, converters);
return (Repository) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
use of org.eclipse.jnosql.mapping.reflection.ClassMappings in project jnosql-diana by eclipse.
the class BeanManagersTest method shouldInstanceWithCurrentBeanManager.
@Test
public void shouldInstanceWithCurrentBeanManager() {
final ClassMappings classMappings = BeanManagers.getInstance(ClassMappings.class);
assertNotNull(classMappings);
}
Aggregations