THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
match interface="org.apache.Foo"
matches any service that is registered under the org.apache.Foo class or interface. Theinterface
attribute takes regular expressions, so specifyingorg.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 thetest.prop
property set to the valuexyz
. Other services don't match. Any number ofmatch-property
tags can be specified. - The
add-property
specifies the extra property to be added to the remote service. The above example addsservice.exported.interfaces="*"
which will cause any matching service to be exposed remotely. Theadd-property
has an optionaltype
attribute which defaults tojava.lang.String
. You can specify other Java basic types such asjava.lang.Long
if needed. You can have any number ofadd-property
tags.
...