HI Sebastien, The Binding interface contains methods that are setters / getters for name, uri and then by extending the intent and policy attach points it inherits getters for the list of intents and policy sets. To implement these methods most of the bindings end up have the same chunk of code that declares these files and then provides the getters / setters around them. This is what has been abstracted into the AbstractBinding class.
Thanks. - Venkat On 8/8/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote: > Venkata Krishnan wrote: > > Hi, > > > > I just observed that, not all bindings are extending from > > AbstractBinding though all implement the interface Binding. The > > AbstractBinding class provides an implementation for the Binding > > interface and in my opinion should be used by all bindings to avoid > > duplication of code that implements the BInding interface. > > > > I feel the pinch for this now as I am adding a couple of things for > > policies and seems a bit odd to go an copy over the same things across > > a dozen classes. > > > > Let me know what people feel about this and I can go and fix all the > > bindings for this. > > > > Thanks. > > > > - Venkat > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > This might sound like a naive question, but if all bindings start to > extend a common AbstractBinding class then why will we need a Binding > interface at all? :) > > Another way to look at this is that maybe the code that you're copying > shouldn't be part of the binding in the first place. Could you please > point to the specific code bits causing the issue to help me understand? > Thanks. > > -- > Jean-Sebastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
