A file with .bml extension is a Bean Markup Language file that stores Java classes for supporting Java apps. This allows access to Java objects and methods, and doesn’t need to create new functionality using Java classes. It specifies how the components are connected to each other for performing useful tasks. BML was developed by IBM alphaWorks to describe the structures and components relationships. BML files can be opened and viewed using any text editor such as Web Browsers, Microsoft Notepad and Notepad++.
BML File Format
The IBM alphaworks website has provided two implementations of BML. The First implementation is an interpreter that ‘plays’ a BML script for generating the desired bean hierarchy. The second implementation is a compiler that compiles any BML script into reflection-free Java code. This is advantageous in the sense that it allows capturing the inter-component structure of the application using a language that is designed for this specific purpose with the added ability to compile it into ‘regular’ Java code.
The following is an explanation of some of the tags used in the BML language:
The element is used to create new beans or to look up beans by name. The tag is of the format:
<bean class = "classname or serialized file" [id = "name"]>
The “id” in the tag is associated with the object registry for the JavaBean.
There are two ways the string tag can be used:
To create a non-empty string:
<string [value = "value of string"]> [value of string]