BeanInitializer (install4j API)
Date: 2010-09-29

Overview | Package | Class | Tree | Deprecated | Index | Help
| install4j API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.install4j.api.beaninfo
Interface BeanInitializer

    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 properties 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

### initializeBean

    void initializeBean(Bean bean)

  Called after the unconfigured bean is instantiated the first time at design-time. For existing bean instances that are loaded from a project, this method is not called after instantiation.

  Parameters:
    `bean` - the bean that should be initialized

Overview | Package | Class | Tree | Deprecated | Index | Help
| install4j API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD