public class ServiceFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
local |
| Constructor and Description |
|---|
ServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <S> S |
newLocalService(Class<S> klass)
Recupere une instance d'un service local donne par sa classe de contrat
sans contexte d'environnement.
|
static <S> S |
newRemoteService(Class<S> klass)
Recupere une instance d'un service distant donne par sa classe de contrat
sans context d'environnement.
|
static ServiceWeb |
newServiceGuest() |
static ServiceNotifier |
newServiceNotifier() |
static ServiceSchedule |
newServiceSchedule() |
static ServiceWeb |
newServiceWeb() |
static void |
setLocal(boolean local) |
public static void setLocal(boolean local)
local - false autrement.public static ServiceWeb newServiceWeb()
ServiceWeb locale si la variable
local est positionnee a true, distant sinon.public static ServiceWeb newServiceGuest()
ServiceWeb locale si la variable
local est positionnee a true, distant
sinon avec un context de securite pour l'utilisateur guest.public static ServiceNotifier newServiceNotifier()
ServiceNotifier locale si la
variable local est positionnee
a true, distant sinon.public static ServiceSchedule newServiceSchedule()
public static <S> S newLocalService(Class<S> klass)
klass - la classe du service recherchepublic static <S> S newRemoteService(Class<S> klass)
klass - la classe du service rechercheCopyright © 2008-2013 Cybelia. All Rights Reserved.