@Test public void testGenericInterface() throws Exception { Supplier factory = new ServletConfigFactory(getSessionFactory()); Object instance = factory.get(); assertTrue(instance instanceof HibernateConfiguration); }
@Override public Configuration get() { return new HibernateConfiguration(factory, GROUP_NAME); }
ServletConfigFactory implements Supplier<Configuration> { @Override public Configuration get() { return new HibernateConfiguration(factory, GROUP_NAME); } }
ServletConfigFactory implements Supplier<Configuration> { @Override public Configuration get() { return new HibernateConfiguration(factory, GROUP_NAME); } @Inject  ServletConfigFactory(final SessionFactory factory); }
ServletConfigFactory implements Supplier<Configuration> { @Override public Configuration get() { return new HibernateConfiguration(factory, GROUP_NAME); } @Inject  ServletConfigFactory(final SessionFactory factory); @Override Configuration get(); }
ServletConfigFactory implements Supplier<Configuration> { @Override public Configuration get() { return new HibernateConfiguration(factory, GROUP_NAME); } @Inject  ServletConfigFactory(final SessionFactory factory); @Override Configuration get(); static final String GROUP_NAME; }