我有一个 A 类,其中包含以下内容
class A
{
private HashSet<Long> at = new HashSet<Long>();
and it has a constructor like this
A()
{
//set is being initialsised here
this.at.add(new Long(44));
this.at.add(new Long(34));
this.at.add(new Long(54));
this.at.add(new Long(55));
}
现在下面是为它定义的spring xml bean......
<bean id="aa" class="com.abc.A">
<property name="readPermissionGroup">
<set>
<value>03</value>
<value>13</value>
<value>54</value>
<value>55</value>
</set>
</property>
</bean>
现在请告知如何将上述bean aa添加到bb中,因为bean bb包含A类的完整定义