GitHub user geomacy opened a pull request:

    https://github.com/apache/brooklyn-server/pull/65

    Service loader updates

    This PR contains a number of changes that are a contribution to getting 
Brooklyn running on Karaf.
    
    The Brooklyn code uses a ServiceLoader in a small number of places to look 
up a variety of classes. In OSGI this doesn't work as not everything is in the 
same classloader.  These changes move the lookups into a utility that will 
first check OSGI service registry for the lookup, and, if the OSGI environment 
is unavailable, will fall back to the previous behaviour of using the 
ServiceLoader, for backward compatibility.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/geomacy/brooklyn-server service-loader-updates

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/65.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #65
    
----
commit a51fdc71c9a1620e35cd88b1b6643ca4439b719d
Author: Geoff Macartney <[email protected]>
Date:   2016-03-04T10:52:46Z

    Use OSGI lookup for ApiObjectsFactory and fall back to ServiceLoader.
    
    Abstract out the lookup into a utility.

commit 00d1338b5c500a5585aaa91c38b3205668254821
Author: Geoff Macartney <[email protected]>
Date:   2016-03-07T16:19:39Z

    Add framework lookup for (deprecated) PlanToSpecFactory.

commit f7a03f03897a7b0acc50163aeed32bf65283c1c4
Author: Geoff Macartney <[email protected]>
Date:   2016-03-07T17:08:18Z

    Apply FrameworkLookup to TypePlanTransformers.

commit 8f88e41afc94bcdf7dfc7896dbaa44ceaffc464f
Author: Geoff Macartney <[email protected]>
Date:   2016-03-08T09:51:55Z

    Use prototype scope on beans rather than explicit factory classes.

commit ebaeae7beac048f488b5a46c5430395ddc0ca35b
Author: Geoff Macartney <[email protected]>
Date:   2016-03-08T10:30:13Z

    Replace ServiceLoader with FrameworkLookup for EntitySpecResolver.

commit 98d1b6003e9b71c3a0d85d25152e31c5414ccf92
Author: Geoff Macartney <[email protected]>
Date:   2016-03-08T14:26:05Z

    Replace ServiceLoader with FrameworkLookup for ServiceTypeResolver.

commit b60db4c6f4dd5f57e06a962d52e734f361dd7c88
Author: Geoff Macartney <[email protected]>
Date:   2016-03-08T14:56:22Z

    Replace ServiceLoader with FrameworkLookup for LocationResolver.

commit e6a412bfc0b0347364f50aee92977d6488d3d3e9
Author: Geoff Macartney <[email protected]>
Date:   2016-03-08T16:56:17Z

    Fix list handling.

commit 6c3c508c8da03447742d19567d225bcf045da7c0
Author: Geoff Macartney <[email protected]>
Date:   2016-03-10T15:37:31Z

    ServiceLookups should be in core, and use correct interface for 
campToSpecTransformerService.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to