public class Failover<T> extends Object
com.thoughtworks.proxy.toys.failover
Modifier and Type | Class and Description |
---|---|
static class |
Failover.FailoverBuild<T> |
static class |
Failover.FailoverExceptingOrBuild<T> |
static class |
Failover.FailoverWithOrExceptingOrBuild<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Failover.FailoverWithOrExceptingOrBuild<T> |
proxy(Class<T> type)
Creates a factory for proxy instances handling failover situations.
|
static <T> Failover.FailoverWithOrExceptingOrBuild<T> |
proxy(Class<T> primaryType,
Class<?>... types)
Creates a factory for proxy instances handling failover situations.
|
static <T> Failover.FailoverExceptingOrBuild<T> |
proxy(T... delegates)
Creates a factory for proxy instances handling failover situations.
|
public static <T> Failover.FailoverWithOrExceptingOrBuild<T> proxy(Class<T> type)
type
- the types of the proxypublic static <T> Failover.FailoverWithOrExceptingOrBuild<T> proxy(Class<T> primaryType, Class<?>... types)
primaryType
- the primary type implemented by the proxytypes
- other types that are implemented by the proxypublic static <T> Failover.FailoverExceptingOrBuild<T> proxy(T... delegates)
delegates
- the array with the delegates in a failover situationCopyright © 2005–2016 Codehaus. All rights reserved.