| | |
| | | |
| | | // Register the test parent resource bundle. |
| | | TestParentCfgDefn d = TestParentCfgDefn.getInstance(); |
| | | d.initialize(); |
| | | String baseName = d.getClass().getName(); |
| | | ResourceBundle resourceBundle = ResourceBundle.getBundle(baseName); |
| | | ManagedObjectDefinitionI18NResource.getInstance().setResourceBundle(d, |
| | |
| | | |
| | | // Register the test child resource bundle. |
| | | TestChildCfgDefn d = TestChildCfgDefn.getInstance(); |
| | | d.initialize(); |
| | | String baseName = d.getClass().getName(); |
| | | ResourceBundle resourceBundle = ResourceBundle.getBundle(baseName); |
| | | ManagedObjectDefinitionI18NResource.getInstance().setResourceBundle(d, |
| | |
| | | |
| | | |
| | | /** |
| | | * Initializes a property definition and its default behavior. |
| | | * |
| | | * @param pd |
| | | * The property definition to be initialized. |
| | | * @throws Exception |
| | | * If the property definition could not be initialized. |
| | | */ |
| | | public static void initializePropertyDefinition(PropertyDefinition<?> pd) |
| | | throws Exception { |
| | | pd.initialize(); |
| | | pd.getDefaultBehaviorProvider().initialize(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Adds a constraint temporarily with test child definition. |
| | | * |
| | | * @param constraint |