APIReview137201

Summary of the change

Addition of factory method org.openide.util.lookup.Lookups.singleton(Object obj, String id). It would be a variety of an already existing factory method Lookups.singleton(Object) that would allow to specify an Id of the object.

Goal of the API change

The goal is to provide a publicly available simple implementation of a lookup that allows to assign Id to the contained objects.

Justification

The current API does not allow to create such a Lookup instance without creating a custom subclass of Lookup and if API change 137191 is approved, it will be necessary.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo