public class ProxyUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createDAOInstance(T impl,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Shortcut method to create an instance of category dao.
|
static <T> T |
createInstance(T impl,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
IOnDemandCallHandler handler,
IOnDemandStatsFactory<? extends IStats> statsFactory,
boolean attachLoggers,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Creates a new proxied instance for an existing implementation.
|
static <T> T |
createServiceInstance(T impl,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Shortcut method to create service instance with least possible effort.
|
static <T> T |
createServiceInstance(T impl,
java.lang.String category,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Shortcut method to create service instance.
|
static <T> T |
createServiceInstance(T impl,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
boolean attachLoggers,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Creates a monitored proxy instance for a service.
|
static <T> T |
createServiceInstance(T impl,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
Creates a monitored proxy instance for a service.
|
public static <T> T createInstance(T impl,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
IOnDemandCallHandler handler,
IOnDemandStatsFactory<? extends IStats> statsFactory,
boolean attachLoggers,
java.lang.Class<T> interf,
java.lang.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.attachLoggers - if true loggers are attached.interf - interfaces.public static <T> T createServiceInstance(T impl,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
boolean attachLoggers,
java.lang.Class<T> interf,
java.lang.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.attachLoggers - if true loggers are attached.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,
java.lang.String name,
java.lang.String category,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.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,
java.lang.String category,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.Class<?>... additionalInterfaces)
T - impl - category - subsystem - interf - additionalInterfaces - public static <T> T createServiceInstance(T impl,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.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,
java.lang.String subsystem,
java.lang.Class<T> interf,
java.lang.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-2020 anotheria.net. All Rights Reserved.