|Home > Apache Tuscany Docs 2.x > Index > SCA Java Extensions Guide > SCA Java definitions.xml|
|Apache Tuscany Docs 2.x > Index > SCA Java Extensions Guide > SCA Java definitions.xml||Tuscany Home | User List | Dev List | Issue Tracker|
Apache Tuscany Docs 2.x
SCA Java definitions.xml
Section 1.8 describes the definitions.xml file as holding all of the artifacts that are useful for configuring an SCA domain but that are not specific to a particular composite or component. It goes on to say that "All of these artifacts within and SCA Domain are defined in a global, SCA Domain-wide file named definitions.xml". To achieve our extensibility goals we, in Tuscany, consider the SCA Domain wide definitions.xml file to be a logical concept that is constructed at runtime from the contents of definitions.xml files provided in contributions and in Tuscany extensions.
Each definitions.xml file may contain.
An extension, such as the modules/policy-security extension relies on some policy sets and intents being available in the SCA Domain. The definitions.xml is the place to define these and hence if you look in this extension module you will find the following.
When this module is loaded at runtime the contents of this file are made generally available and hence in you composite you can use statements such at.
Where requires="authentication" refers to intent name="authentication" which is now available as an SCA Domain level definition.
If contributionA provides a file such as:
and ContributionB provides a file such as:
Then both the itent and the policySet should be available in the logical SCA Domain-wide definitions.xml and the policySet "specialAuthenticationPolicy" should successfully find the intent "tuscany:wsAuthentication". Composite files contributed to the domain will successfully be able to reference both the intent and the policy set.