|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanInitializer
Interface for the Install4JBeanInfo.ATTRIBUTE_BEAN_INITIALIZER
value of a bean descriptor.
With a bean initializer you can modify beans after they are instantiated.
This is useful if you have default property values that include compiler variables. Compiler variables in bean propperties are replaced directly in the XML representation of a bean. However, the JavaBean serialization mechanism does not save default values for properties, so compiler variables in default values are not replaced at compile time. If you set the default value from a bean initializer, the JavaBean serialization mechanism will recognize this value as non-default and save it explicitly.
Method Summary | |
---|---|
void |
initializeBean(Bean bean)
Called after the unconfigured bean is instantiated the first time at design-time. |
Method Detail |
---|
void initializeBean(Bean bean)
bean
- the bean that should be initialized
|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |