<config:alias/>
Alias allows a class' method to be registered under a different name for use
in xml configuraion. For example, if the class mypackage.MyClass had a method
setClazz(Class c) and you would like that method to be visible in xml as an
attribute named class (instead of clazz), you would specify the following:
<config:alias method="mypackage.MyClass.setClazz(java.lang.Class)" alias="class" />
Note: the class name and argument types must either be fully qualified, unless
they are in the java.lang package, or have been imported using the
<config:import> tag.
-
Implemented by:
-
thinkmap.xmlconfig.tags.Alias
Simple Attributes
| alias |
| description: |
Set the id you want to use when you refer to the method.
|
| type: |
String
|
| required: |
Yes
|
|
| method |
| description: |
Set the name of the method you want to have aliased
|
| type: |
String
|
| required: |
Yes
|
|
| namespace |
| description: |
Set the namespace of this alias. If the alias is specified
within a <config:namespace> the containing namespace
can be used. Otherwise, this is required.
|
| type: |
String
|
| required: |
No
|
|