eu.cedarsoft.utils.springrcp.beanlist.ManagedBeanDialog Maven / Gradle / Ivy
package com.cedarsoft.utils.springrcp.beanlist;
import org.jetbrains.annotations.NotNull;
/**
*
* Date: 22.08.2006
* Time: 19:06:51
*
* @author Johannes Schneider -
* Xore Systems
*/
public abstract class ManagedBeanDialog extends AbstractBeanDialog {
private final BeanManager beanManager;
protected ManagedBeanDialog( @NotNull BeanManager beanManager, @NotNull Class beanType ) {
this.beanManager = beanManager;
}
@Override
protected void beanAdded() {
getBeanManager().add( getBean() );
}
@Override
protected void saveBean() {
getBeanManager().save( getBean() );
}
@NotNull
public BeanManager getBeanManager() {
return beanManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy