#1747 - Refactor tidy tighten access on ebeaninternal/server/deploy

Adds PropertyAssocMany to ensure public access on BeanPropertyAssocMany helper methods for ebean-elastic integration.
This commit is contained in:
rob bygrave
2019-07-02 20:46:49 +12:00
parent 140178bb47
commit 5f2454831e
40 changed files with 275 additions and 268 deletions
@@ -11,24 +11,24 @@ import java.util.List;
/**
* Default implementation for creating BeanControllers.
*/
public class PostLoadManager {
class PostLoadManager {
private static final Logger logger = LoggerFactory.getLogger(PostLoadManager.class);
private final List<BeanPostLoad> list;
public PostLoadManager(BootupClasses bootupClasses) {
PostLoadManager(BootupClasses bootupClasses) {
this.list = bootupClasses.getBeanPostLoaders();
}
public int getRegisterCount() {
int getRegisterCount() {
return list.size();
}
/**
* Register BeanPostLoad listeners for a given entity type.
*/
public void addPostLoad(DeployBeanDescriptor<?> deployDesc) {
void addPostLoad(DeployBeanDescriptor<?> deployDesc) {
for (BeanPostLoad c : list) {
if (c.isRegisterFor(deployDesc.getBeanType())) {