S - the type of AwsClientBuilder, who actually creates AWS clients of type T.T - the type of AWS clients this factory creates.public final class AWSClientFactory<S extends AwsClientBuilder<S,T>,T> extends Object implements AWSClientFactory<T>
T.| Constructor and Description |
|---|
AWSClientFactory(AwsClientBuilder<S,T> awsClientBuilder) |
| Modifier and Type | Method and Description |
|---|---|
T |
client(Field field)
Return an object to inject in the
field. |
public AWSClientFactory(AwsClientBuilder<S,T> awsClientBuilder)
public T client(Field field) throws Exception
AWSClientFactoryfield.client in interface AWSClientFactory<T>field - a field to inject into.field.Exception - when something went wrong.