What's DS?  Dual Screen? Declarative Service? Dynamic Service?

On Mon, May 23, 2011 at 8:44 AM, Peter Kriens <peter.kri...@aqute.biz>wrote:

> It is the beauty of DS: Just throw the exception and it ends up in the log!
>
> Kind regards,
>
>        Peter Kriens
>
> On 16 mei 2011, at 21:47, sam lee wrote:
>
> > Hey,
> >
> > I have:
> >
> >    @Activate
> >    private void activate(Map<String, ?> config) {
> >        cdnHost = OsgiUtil.toString(config.get(PROP_CDN_HOST), null);
> >
> >
> >        if (cdnHost == null) {
> >            // Do I throw an Exception here?
> >            // I don't want this component to be Activated if cdnHost
> isn't
> > set.
> >        }
> >
> >    }
> >
> >
> > Is exception a proper way?
> > Or, is there a Service that I can @Reference, that has error flagging
> > methods?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>

Reply via email to