private HibernateStatsMBean getBean() { return statsBeanProvider.getBean(); }
private EhcacheHibernateMBean getBean() { return statsBeanProvider.getBean(); }
private EhcacheHibernateMBean getBean() { return statsBeanProvider.getBean(); }
public Void call() throws Exception { if (!tornDown.get()) { beanProvider.getBean().flushRegionCaches(); } return null; } });
public Void call() throws Exception { if (!tornDown.get()) { setCacheRegionsEnabled(false); if (flushCaches) { beanProvider.getBean().flushRegionCaches(); } } return null; } });
public Void call() throws Exception { if (!tornDown.get()) { beanProvider.getBean().flushRegionCaches(); } return null; } });
public Void call() throws Exception { if (!tornDown.get()) { setCacheRegionsEnabled(false); if (flushCaches) { beanProvider.getBean().flushRegionCaches(); } } return null; } });
public Void call() throws Exception { if (!tornDown.get()) { beanProvider.getBean().flushRegionCaches(); } return null; } });
private void setCacheRegionsEnabled(boolean enabled) { beanProvider.getBean().setRegionCachesEnabledFlushOnDisable(enabled); }
private void setCacheRegionsEnabled(boolean enabled) { beanProvider.getBean().setRegionCachesEnabled(enabled); }
private void setCacheRegionsEnabled(boolean enabled) { beanProvider.getBean().setRegionCachesEnabled(enabled); }
private void handleStatisticsEnabled() { HibernateStatsMBean bean = beanProvider.getBean(); if (bean != null) { handleStatisticsEnabled(bean.isStatisticsEnabled()); } }
public void addNotificationListener(NotificationListener listener) { removeNotificationListener(listener); getBean(); // this smells: force the local notification listener to be added to bean. broadcaster.addNotificationListener(listener, null, null); }
public void addNotificationListener(NotificationListener listener) { removeNotificationListener(listener); getBean(); // this smells: force the local notification listener to be added to bean. broadcaster.addNotificationListener(listener, null, null); }
public void addNotificationListener(NotificationListener listener) { removeNotificationListener(listener); getBean(); // this smells: force the local notification listener to be added to bean. broadcaster.addNotificationListener(listener, null, null); }
public void actionPerformed(final ActionEvent e) { Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this); JDialog dialog = new JDialog(frame, frame.getTitle(), true); XTextArea textArea = new XTextArea(); textArea.setEditable(false); textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration()); dialog.getContentPane().add(new XScrollPane(textArea)); dialog.setSize(500, 600); WindowHelper.center(dialog); dialog.setVisible(true); } }
public void actionPerformed(final ActionEvent e) { Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this); JDialog dialog = new JDialog(frame, frame.getTitle(), true); XTextArea textArea = new XTextArea(); textArea.setEditable(false); textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration()); dialog.getContentPane().add(new XScrollPane(textArea)); dialog.setSize(500, 600); WindowHelper.center(dialog); dialog.setVisible(true); } }
public void actionPerformed(final ActionEvent e) { Frame frame = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, CacheRegionsPanel.this); JDialog dialog = new JDialog(frame, frame.getTitle(), true); XTextArea textArea = new XTextArea(); textArea.setEditable(false); textArea.setText(beanProvider.getBean().generateActiveConfigDeclaration()); dialog.getContentPane().add(new XScrollPane(textArea)); dialog.setSize(500, 600); WindowHelper.center(dialog); dialog.setVisible(true); } }