- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
public synchronized <BEAN> void register(final Class<BEAN> clazz) { try { if (!containsTool(clazz)) { logger.debug("register new class: " + clazz.getName()); final ClassDescriptor<BEAN> classDescriptor = new ClassDescriptorBuilderImpl<>(clazz).build(); final Persistor<BEAN> ormPersistor = persistorFactory.generate(classDescriptor); final ClassTool<BEAN> classTool = new ClassToolImpl<>(classDescriptor, ormPersistor); classToolMap.put(clazz, classTool); } } catch (final Exception e) { throw new JpoException(e); } }
@Override public synchronized <BEAN> JPOConfig register(final Class<BEAN> clazz) { try { if (!getServiceCatalog().getClassToolMap().containsTool(clazz)) { logger.debug("register new class: " + clazz.getName()); //$NON-NLS-1$ final ClassDescriptor<BEAN> classDescriptor = new ClassDescriptorBuilderImpl<BEAN>(clazz, getServiceCatalog().getTypeFactory()).build(); final Persistor<BEAN> ormPersistor = new PersistorGeneratorImpl<BEAN>(classDescriptor, getTypeFactory()).generate(); ClassTool<BEAN> classTool = new ClassToolImpl<BEAN>(classDescriptor, ormPersistor); serviceCatalog.getClassToolMap().put(clazz, classTool); } } catch (final Exception e) { throw new JpoException(e); } return this; }