diff --git a/src/main/java/com/avaje/ebean/EbeanServer.java b/src/main/java/com/avaje/ebean/EbeanServer.java index d4f72b1a5..a2bb1f4b4 100644 --- a/src/main/java/com/avaje/ebean/EbeanServer.java +++ b/src/main/java/com/avaje/ebean/EbeanServer.java @@ -167,8 +167,9 @@ public interface EbeanServer { /** * Create a new instance of T that is an EntityBean. *

- * Generally not expected to be useful (now dynamic subclassing support was removed in - * favour of always using enhancement). + * Useful if you use BeanPostConstructListeners or @PostConstruct Annotations. + * In this case you should not use "new Bean...()". Making all bean construtors protected + * could be a good idea here. *

*/ T createEntityBean(Class type); diff --git a/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPersistListener.java b/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPersistListener.java index 1ad5b2a82..a5a211209 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPersistListener.java +++ b/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPersistListener.java @@ -16,7 +16,7 @@ public class ChainedBeanPersistListener implements BeanPersistListener { private final BeanPersistListener[] chain; /** - * Construct adding 2 BeanPersistController's. + * Construct adding 2 BeanPersistListener's. */ public ChainedBeanPersistListener(BeanPersistListener c1, BeanPersistListener c2) { this(addList(c1, c2)); @@ -46,7 +46,7 @@ public class ChainedBeanPersistListener implements BeanPersistListener { } /** - * Construct given the list of BeanPersistController's. + * Construct given the list of BeanPersistListener's. */ public ChainedBeanPersistListener(List list) { this.list = list; @@ -54,7 +54,7 @@ public class ChainedBeanPersistListener implements BeanPersistListener { } /** - * Register a new BeanPersistController and return the resulting chain. + * Register a new BeanPersistListener and return the resulting chain. */ public ChainedBeanPersistListener register(BeanPersistListener c) { if (list.contains(c)){ @@ -69,7 +69,7 @@ public class ChainedBeanPersistListener implements BeanPersistListener { } /** - * De-register a BeanPersistController and return the resulting chain. + * De-register a BeanPersistListener and return the resulting chain. */ public ChainedBeanPersistListener deregister(BeanPersistListener c) { if (!list.contains(c)){ diff --git a/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPostLoad.java b/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPostLoad.java index 4fdbea86e..ab31a33a7 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPostLoad.java +++ b/src/main/java/com/avaje/ebeaninternal/server/deploy/ChainedBeanPostLoad.java @@ -15,7 +15,7 @@ public class ChainedBeanPostLoad implements BeanPostLoad { private final BeanPostLoad[] chain; /** - * Construct given the list of BeanPersistController's. + * Construct given the list of BeanPostLoad's. */ public ChainedBeanPostLoad(List list) { this.list = list; @@ -23,7 +23,7 @@ public class ChainedBeanPostLoad implements BeanPostLoad { } /** - * Register a new BeanPersistController and return the resulting chain. + * Register a new BeanPostLoad and return the resulting chain. */ public ChainedBeanPostLoad register(BeanPostLoad c) { if (list.contains(c)){ @@ -38,7 +38,7 @@ public class ChainedBeanPostLoad implements BeanPostLoad { } /** - * De-register a BeanPersistController and return the resulting chain. + * De-register a BeanPostLoad and return the resulting chain. */ public ChainedBeanPostLoad deregister(BeanPostLoad c) { if (!list.contains(c)){