net.xoetrope.optional.service
Class XServiceHelper

java.lang.Object
  extended by net.xoetrope.optional.service.XServiceHelper

public class XServiceHelper
extends java.lang.Object

A helper to simplify access to services

Copyright (c) Xoetrope Ltd. 2001-2004

$Revision: 2.13 $ License: see license.txt


Constructor Summary
XServiceHelper()
           
 
Method Summary
static XServiceModelNode getService(XProject project, java.lang.String serviceName)
          Set a named service node from the model.
static ServiceProxy getServiceProxy(XProject project, java.lang.String serviceName)
          Set a named service proxy from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XServiceHelper

public XServiceHelper()
Method Detail

getService

public static XServiceModelNode getService(XProject project,
                                           java.lang.String serviceName)
Set a named service node from the model.

Parameters:
project - the current project
serviceName - the name of the service
Returns:
the service, or null if an error occured or the service is non existant

getServiceProxy

public static ServiceProxy getServiceProxy(XProject project,
                                           java.lang.String serviceName)
Set a named service proxy from the model.

Parameters:
project - the current project
serviceName - the name of the service
Returns:
the service, or null if an error occured or the service is non existant