Extending the OBJC Configuration

If you are extending the OJB Console and/or developing a new application from the console, you may need to extend the configuration files found in OJBC.xml and ui_repository.xml.

Adding Configuration Elements

All configuration files in the consle are read by Castor generated objects. You can easily create new xml elements in either of these files by modifying the XSD's and regenerating the castor code. The xsd's are found in the etc/castor directory. Please refer to the Castor Documentation for information about the XSD files and the xml mappings. The console uses the default castor marshaller.

Regenerating Castor Code

To regenerate the castor code use the following ant targets:
    ant clean-codegen
    ant codegen

Accessing the Elements

Any ApplicationServiceAware object may access the configuration by calling the methods:
// for the ui_repository.xsd
getApplicationService().getUiMetaDataService()

or

// for the objectconsole.xsd
getApplicationService().getConfigService()
Please refer to the javadocs for more information. You may wish to add methods to these services.

Copyright © 2003 Alexander Bibighaus et al. All rights Reserved.