Re: DS Pax whiteboard example with multiple URL patterns anywhere?

2018-03-16 Thread Александр
Pax Web parses @WebServlet and @WebFilter annotations, but a little buggy (ignore "name" property of @WebServlet, so if you need a filter on it, use whiteboard constant for it). In your case, to declare multiple values for property just add two properties with same key: @Component( property= {"osgi

Re: DS Pax whiteboard example with multiple URL patterns anywhere?

2018-03-16 Thread Steinar Bang
> Steinar Bang : > Steinar Bang : >> I'm in the process of replacing my own home brewed "mini dependency >> injection"[1] with Declarative Services (DS). >> I'm wondering how to replace what I was doing here: >> https://github.com/steinarb/ukelonn/blob/b369b5768c08a1c6bb6fb422e2f462ca797c

Re: DS Pax whiteboard example with multiple URL patterns anywhere?

2018-03-16 Thread Steinar Bang
> Steinar Bang : > I'm in the process of replacing my own home brewed "mini dependency > injection"[1] with Declarative Services (DS). > I'm wondering how to replace what I was doing here: > > https://github.com/steinarb/ukelonn/blob/b369b5768c08a1c6bb6fb422e2f462ca797c253f/ukelonn.bundle/s

DS Pax whiteboard example with multiple URL patterns anywhere?

2018-03-16 Thread Steinar Bang
I'm in the process of replacing my own home brewed "mini dependency injection"[1] with Declarative Services (DS). I'm wondering how to replace what I was doing here: https://github.com/steinarb/ukelonn/blob/b369b5768c08a1c6bb6fb422e2f462ca797c253f/ukelonn.bundle/src/main/java/no/priv/bang/ukelon