On Fri, 2009-01-09 at 15:08 -0500, M. Ranganathan wrote:
> Hello,
> 
> 
> I am working on XCF-2755 : UI to guide admin through the configuration 
> of DNS upon installation
> 
> I dont have much experience with Spring so please bear with me.
> 
> Following Damian's advice I am extending 
> org.sipfoundry.sipxconfig.service.ConfiguredService. I need to extend 
> the descriptor for this so that Spring will inject a LocationsManager 
> element. This is so I can find all the locations for the sipx proxy 
> service. So I added set and get methods for LocationsManager. Now I need 
> to fix up the descriptor. So the question is how.
> 
> I assume the descriptor for this is to be added to service.beans.xml

Ranga, 
  You will first need to define your new class in a Spring beans file.
service.beans.xml seems like a good place.  There are many example in
this file of similar beans.  As far as injecting the LocationsManager
object, you will want a line in your definition similar to this:

<property name="locationManager" ref="locationsManager" />

The locationsManager bean is a singleton, which I think I saw you ask
about on #sipx.

Kevin


_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to