[prev in list] [next in list] [prev in thread] [next in thread]
List: avalon-users
Subject: Re: Service Naming Conventions
From: Peter Donald <peter () realityforge ! org>
Date: 2003-05-30 22:53:01
[Download RAW message or body]
Hi,
The following are all equivelent and are the recomended approach in case where
there is one dependency for each role
* "org.proj.MyService"
* Service.class.getName()
* Servce.ROLE
In the case where you have multiple dependencys in same role you generally
postfix them with "/" and then some arbitary string such as
* "org.proj.MyService/store"
* Service.class.getName() + "/store"
* Servce.ROLE + "/store"
Other different classes of dependencys include postfixing with "[]" to get an
array returned, postfixing with "{}" to get a java.util.Map of dependencies
returned or postfixing with "Selector" to get a Selector returned. Using
Selectors is considered bad practice and while not deprecated yet is likely
to be in the future. Array and Map dependencies are only implemented in
Phoenix.
--
Cheers,
Peter Donald
-----------------------------------------------
"You can't depend on your eyes when your
imagination is out of focus." -Mark Twain
-----------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@avalon.apache.org
For additional commands, e-mail: users-help@avalon.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic