org.exoplatform.wiki.rendering.util
Class Utils

java.lang.Object
  extended by org.exoplatform.wiki.rendering.util.Utils

public class Utils
extends Object

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 14, 2013


Constructor Summary
Utils()
           
 
Method Summary
static String getPortalName()
          gets portal name
static String getRestContextName()
          gets rest context name
static
<T> T
getService(Class<T> clazz)
          Gets the service.
static
<T> T
getService(Class<T> clazz, String containerName)
          Gets the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getService

public static <T> T getService(Class<T> clazz)
Gets the service.

Parameters:
clazz - the clazz
Returns:
the service

getService

public static <T> T getService(Class<T> clazz,
                               String containerName)
Gets the service.

Parameters:
clazz - the class
containerName - the container's name
Returns:
the service

getRestContextName

public static String getRestContextName()
gets rest context name

Returns:
rest context name

getPortalName

public static String getPortalName()
gets portal name

Returns:
portal name


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.