You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by fivos <fi...@gmail.com> on 2013/06/28 17:57:41 UTC

providers supported initialization code

Hi,

I was going through some code in org.jclouds.providers.providers.java

   /**
    * Returns all available providers.
    *
    * @return all available providers
    */
   public static Iterable<ProviderMetadata> all() {
     return ImmutableSet.<ProviderMetadata>builder()
                        .addAll(fromServiceLoader())
                        .addAll(ProviderRegistry.fromRegistry()).build();
   }

Apparently fromRegistry() returns  all the providers which are supposed to
be stored in a variable called providers in ProviderRegistry class. Now
could someone point to me when/where this providers variable gets
initialized with all the provider metadata supported by jclouds?

Thanks in advance, I am attaching the code I am using to create a server

Fivos K.

Re: providers supported initialization code

Posted by Andrew Phillips <ap...@qrmedia.com>.
> Apparently fromRegistry() returns  all the providers which are supposed to
> be stored in a variable called providers in ProviderRegistry class. Now
> could someone point to me when/where this providers variable gets
> initialized with all the provider metadata supported by jclouds?

The ProviderRegistry is used, from what I can see, inside OSGi  
containers where the standard ServiceLoader mechanism may not work.

If you're not working in an OSGi environment, the method you're  
interested in is "fromServiceLoader"...

ap

[1]  
https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/providers/Providers.java#L74

Re: Removing test-mirror repo

Posted by Andrew Phillips <ap...@qrmedia.com>.
> From what I know, the "test-mirror" [1] repo is now unused. I'll be
> removing it on Monday evening PST - please shout if you still need it
> for any reason!

Done.

ap

Removing test-mirror repo

Posted by Andrew Phillips <ap...@qrmedia.com>.
 From what I know, the "test-mirror" [1] repo is now unused. I'll be  
removing it on Monday evening PST - please shout if you still need it  
for any reason!

Thanks

ap

[1] https://github.com/jclouds/test-mirror