juzu.inject
Interface ProviderFactory


public interface ProviderFactory

The provider factory is the main entry point for providing custom providers.

Author:
Julien Viet

Method Summary
<T> Provider<? extends T>
getProvider(Class<T> implementationType)
          Returns a provider for a specific type or null if it cannot be produced.
 

Method Detail

getProvider

<T> Provider<? extends T> getProvider(Class<T> implementationType)
                                  throws Exception
Returns a provider for a specific type or null if it cannot be produced.

Type Parameters:
T - the implementation generic type
Parameters:
implementationType - the implementation class object
Returns:
a provider for this class or null
Throws:
Exception - any exception that would prevent to obtain the provider


Copyright © 2013 eXo Platform SAS. All Rights Reserved.