Shash Chatterjee wrote:

Jaaron,

Unless you are migrating from ECM, you do not need to use the "Selector" post-fix method. Certainly, for the example case it is not needed.

What I have found to work is this:

After you get the service as an Object, always check if the object returned is a ServiceSelector. If so, lookup the desired service from it by supplying the hint/shorthand. Fortress will return the service directly if there is only one defined in the roles-config file, if there are multiple it returns a ServiceSelector. Also, as long as you don't have a hint called "default", supplying a hint of "default" (soon to change to "*"?) to the lookup method returns the first service listed in the roles-config file.

Shash

I will reactivate it.  THe purpose of the "Selector" postfix is to
allow users to migrate from a Selector based approach for the role
to having one default version.

It allows things like accessing DataSourceComponents by a default
for components that make that assumption and as a Selector for
components taht make the other assumption.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to