Your extension definitions can use the dynamic resource loader to load resources or localization data at runtime.

When you have specified a resource bundle in the manifest file, the <extension> elements in the manifest file can specify that bundle by reference. Resource specifications in the <extension> elements should use the expression #{bundle:key} when specifying resources, where bundle indicates the name of the resource bundle, and key indicates the resource to use.

For example, in an <extension> element in the plugin.xml file, you can specify an icon resource to be loaded dynamically at runtime by using the following expression.

<icon>#{MyResourceBundle:MyIconImage}</icon>

Specifying a dynamic resources allows you to avoid using a static value for the icon resource. The bundle name must specify a resource bundle that you made available in the <resources> element of plugin.xml.

You can also omit the bundle name from a resource expression by using the following expression.

<icon>#{MyIconImage}</icon>

Omitting the bundle name causes the vSphere Web Client to use the bundle name that the defaultBundle attribute in the <plugin> element specifies.