public class ProxyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createDAOInstance(T impl,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
Shortcut method to create an instance of category dao.
|
static <T> T |
createInstance(T impl,
String name,
String category,
String subsystem,
IOnDemandCallHandler handler,
IOnDemandStatsFactory<? extends IStats> statsFactory,
Class<T> interf,
Class<?>... additionalInterfaces)
Creates a new proxied instance for an existing implementation.
|
static <T> T |
createServiceInstance(T impl,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
Shortcut method to create service instance with least possible effort.
|
static <T> T |
createServiceInstance(T impl,
String category,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
Shortcut method to create service instance.
|
static <T> T |
createServiceInstance(T impl,
String name,
String category,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
Creates a monitored proxy instance for a service.
|
public static <T> T createInstance(T impl,
String name,
String category,
String subsystem,
IOnDemandCallHandler handler,
IOnDemandStatsFactory<? extends IStats> statsFactory,
Class<T> interf,
Class<?>... additionalInterfaces)
T - interface type.impl - the implementation of the interface.name - name of the producer.category - category of the producer, i.e. service, dao, api, controller.subsystem - subsystem of the producer, i.e. messaging, payment, registration, shop.handler - handler for the calls.statsFactory - the factory for the stats.interf - interfaces.public static <T> T createServiceInstance(T impl,
String name,
String category,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
T - the server interface.impl - the implementation of T.name - name for this instance.category - category of this instance.subsystem - subsystem of this instance.interf - class of T, main interface of the service.additionalInterfaces - additional helper interfaces, that should be supported as well.public static <T> T createServiceInstance(T impl,
String category,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
T - impl - category - subsystem - interf - additionalInterfaces - public static <T> T createServiceInstance(T impl,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
T - service interface.impl - implementation of T.subsystem - subsystem of the service.interf - Class of T.additionalInterfaces - Additional interfaces if applicable.public static <T> T createDAOInstance(T impl,
String subsystem,
Class<T> interf,
Class<?>... additionalInterfaces)
T - main dao interface.impl - implementation of T.subsystem - subsystem of the dao.interf - Class of T.additionalInterfaces - additional interfaces if applicable.Copyright © 2010-2017 anotheria.net. All Rights Reserved.