public class ServiceLocator extends Object
Constructor and Description |
---|
ServiceLocator() |
Modifier and Type | Method and Description |
---|---|
static <T extends net.anotheria.anoprise.metafactory.Service> |
getAsynchRemote(Class<T> pattern)
Returns a remote instance of a service aka stub.
|
static <T extends net.anotheria.anoprise.metafactory.Service> |
getLocal(Class<T> pattern)
Returns a local instance of T.
|
static <T extends net.anotheria.anoprise.metafactory.Service> |
getMonitoredLocal(Class<T> pattern,
Class<?>... monitorableInterfaces)
Returns a moskito-monitored local instance of the requested interface.
|
static <T extends net.anotheria.anoprise.metafactory.Service> |
getRemote(Class<T> pattern)
Returns a remote instance of a service aka stub.
|
public static <T extends net.anotheria.anoprise.metafactory.Service> T getAsynchRemote(Class<T> pattern)
T
- pattern
- public static <T extends net.anotheria.anoprise.metafactory.Service> T getRemote(Class<T> pattern)
T
- pattern
- public static <T extends net.anotheria.anoprise.metafactory.Service> T getLocal(Class<T> pattern)
T
- a service interface.pattern
- class of T.public static <T extends net.anotheria.anoprise.metafactory.Service> T getMonitoredLocal(Class<T> pattern, Class<?>... monitorableInterfaces)
T
- pattern
- monitorableInterfaces
- - additional interfaces the impl may implement. Since the returned instance will be proxied, the proxies should know of all interfaces
that you are going to use to call the returned instance. Therefor they all have to be submitted. However, in most cases you can just omit this parameter.Copyright © 2010-2014 anotheria.net. All Rights Reserved.