com.avaje.ebeaninternal.server.deploy.BeanManager Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.deploy;
import com.avaje.ebeaninternal.server.persist.BeanPersister;
/**
* Holds the BeanDescriptor and its associated BeanPersister.
*/
public class BeanManager {
private final BeanPersister persister;
private final BeanDescriptor descriptor;
public BeanManager(BeanDescriptor descriptor, BeanPersister persister) {
this.descriptor = descriptor;
this.persister = persister;
}
/**
* Return the associated BeanPersister.
*/
public BeanPersister getBeanPersister() {
return persister;
}
/**
* Return the BeanDescriptor.
*/
public BeanDescriptor getBeanDescriptor() {
return descriptor;
}
}