com.jurismarches.vradi.services
Class VradiService

java.lang.Object
  extended by com.jurismarches.vradi.services.VradiService

public class VradiService
extends Object

Vradi service management. Can handle embedded server or remote hessian service.

Since:
18 févr. 2010 17:33:03
Version:
$Revision: 1835 $ $Date: 2010-12-21 10:28:19 +0100 (mar., 21 déc. 2010) $
Author:
$Author: sletellier $

Field Summary
protected static FileService fileService
          File service.
protected static VradiDataService vradiDataService
          Local version to use local {wikittyProxy.
protected static VradiStorageService vradiStorageService
          Vradi management service.
protected static org.nuiton.wikitty.WikittyProxy wikittyProxy
          Wikitty proxy on cached service.
protected static org.nuiton.wikitty.WikittyService wikittyService
          Wikitty service, used to add cache listener.
 
Constructor Summary
VradiService()
           
 
Method Summary
static FileService getFileService()
          Get file service proxy.
protected static String getServiceURL(String serviceEndpoint, String serviceEndUrl)
          Get service full url.
static VradiDataService getVradiDataService()
          Get local vradi service (use local chached wikitty proxy).
static VradiStorageService getVradiStorageService()
          Get remote vradi service (execute code on server).s
static org.nuiton.wikitty.WikittyProxy getWikittyProxy()
          Get wikitty service proxy.
static org.nuiton.wikitty.WikittyService getWikittyService()
          Get wikitty service (only use it to add listener on cache).
protected static org.nuiton.wikitty.WikittyService initLocalWikittyService(org.nuiton.util.ApplicationConfig configuration)
          Create a new wikitty service with cache support that use provided WikittyService for non cached data.
static void initServiceProxies(VradiConfig configuration)
          Init all service proxies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wikittyService

protected static org.nuiton.wikitty.WikittyService wikittyService
Wikitty service, used to add cache listener.


wikittyProxy

protected static org.nuiton.wikitty.WikittyProxy wikittyProxy
Wikitty proxy on cached service.


vradiStorageService

protected static VradiStorageService vradiStorageService
Vradi management service.


vradiDataService

protected static VradiDataService vradiDataService
Local version to use local {wikittyProxy.


fileService

protected static FileService fileService
File service.

Constructor Detail

VradiService

public VradiService()
Method Detail

initServiceProxies

public static void initServiceProxies(VradiConfig configuration)
Init all service proxies.

Parameters:
configuration - configuration

initLocalWikittyService

protected static org.nuiton.wikitty.WikittyService initLocalWikittyService(org.nuiton.util.ApplicationConfig configuration)
Create a new wikitty service with cache support that use provided WikittyService for non cached data.

Parameters:
wikittyServiceRemote - remote wikitty service
configuration - vradi server configuration
Returns:
local wikitty service

getServiceURL

protected static String getServiceURL(String serviceEndpoint,
                                      String serviceEndUrl)
Get service full url.

Parameters:
serviceEndpoint - end point (can't be null)
serviceEndUrl - service small name
Returns:
service full url

getVradiStorageService

public static VradiStorageService getVradiStorageService()
Get remote vradi service (execute code on server).s

Returns:
vradi storage service proxy

getVradiDataService

public static VradiDataService getVradiDataService()
Get local vradi service (use local chached wikitty proxy).

Returns:
local vradi data service proxy

getWikittyProxy

public static org.nuiton.wikitty.WikittyProxy getWikittyProxy()
Get wikitty service proxy. This wikitty service instance is cached and use a remote wikitty service (also cached) for non available data.

Returns:
wikitty service proxy

getWikittyService

public static org.nuiton.wikitty.WikittyService getWikittyService()
Get wikitty service (only use it to add listener on cache).

Returns:
wikitty service

getFileService

public static FileService getFileService()
Get file service proxy.

Returns:
file service


Copyright © 2009-2011 JurisMarches. All Rights Reserved.