Apply dynamic properties to a bean at runtime

后端 未结 3 1946
无人共我
无人共我 2020-12-21 00:34

Assume I have a bean DialogBox, with properties for height and width:

public class DialogBox {
 int x;
 int y;
 ...
}

In my applicationCont

3条回答
  •  攒了一身酷
    2020-12-21 01:22

    Take a look at the Spring OSGi Compendium services, they've got a property manager called "managed-properties", which allows you not only to update the properties at runtime, but while the application is running if you select the "container-managed" update strategy.

提交回复
热议问题