Customize Code

Use Java class inheritance, composition, or listeners to Customize your Sparx XML declarations. The Sparx XML declarations basically create common functionality. By adding Java code you will customize the declarations to execute customized business logic.

Customization Styles

NEF supports code customization using either inheritance or delegation. Although both methods are supported, the delegation model is recommended to help ensure that changes in the NEF APIs do not affect your code. Inheritance is used for large-scale customizations and enhancing the framework itself while delegation is used to implement listeners and event processing customizations.

Customizing Presentation Layer Code

Use either Java inheritace or implementation to create a custom presentation layer. Extend a concrete Sparx NavigationSkin class or implement the NavigationSkin interface to generate your HTML. Create custom CSS for the presentation skin or javascript to add functionality to the client tier.

Customizing Data Management Layer Code

Use Java class inheritance to create custom data management. Extend the Axiom AnsiDataBasePolicy class or implement the DatabbasePolicy interface to enable data access code to remain independent of its physical environment. Isolate platform- and data source-dependent behavior within a single component.

Customizing Security Layer Code

Use Java class inheritance to create custom principals for custom access control. Authenticated Users can be created to classify levels, privileges, permissions, or roles for fine-grained access control decision making. Custom Login Managers that provide authentication types such as certificate-based identity and authentication or Kerberos password-based identity and authentication can be created using Java inheritance.