Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • match interface="org.apache.Foo" matches any service that is registered under the org.apache.Foo class or interface. The interface attribute takes regular expressions, so specifying org.apache(.)* will match any service registered with an interface in a subpackage of org.apache.
  • The optional match-property tags allows you to declare extra conditions to be applied to services of which the interface matches. In the above example the decoration rule will only match services that have the test.prop property set to the value xyz. Other services don't match. Any number of match-property tags can be specified.
  • The add-property specifies the extra property to be added to the remote service. The above example adds service.exported.interfaces="*" which will cause any matching service to be exposed remotely. The add-property has an optional type attribute which defaults to java.lang.String. You can specify other Java basic types such as java.lang.Long if needed. You can have any number of add-property tags.

...