public interface BeanPostConstructListener
Note: You MUST NOT set any default values, as in a following step,
properties will get unload. Use BeanPostLoad
instead.
it's intended to do some dependency-injection here.
If you plan to use this feature you should use Database.createEntityBean(Class)
to create new beans.
Modifier and Type | Method and Description |
---|---|
void |
autowire(Object bean)
Called immediately after construction.
|
boolean |
isRegisterFor(Class<?> cls)
Return true if this BeanPostConstructListener instance should be registered
for post construct on this entity type.
|
void |
postConstruct(Object bean)
Called after every @PostConstruct annotated method of the bean is executed
|
void |
postCreate(Object bean)
Called after
Database.createEntityBean(Class) . |
boolean isRegisterFor(Class<?> cls)
void postConstruct(Object bean)
void postCreate(Object bean)
Database.createEntityBean(Class)
. Only for new beans.
intended to set default values here.Copyright © 2019. All rights reserved.