de.starface.integration.uci.java.v30
Class UciServices

java.lang.Object
  extended by de.starface.integration.uci.java.v30.UciServices

public class UciServices
extends Object

This class contains some utility methods used to convert interfaces to UCI service names and the other way round.


Field Summary
static int UCI_VERSION
          The UCI version of the current set of UCI interfaces
 
Method Summary
static String getServiceName(Class<?> serviceInterface)
          Retrieves the Name of the UCI service the given interface is tagged with
static List<String> getServiceNames(Class<?>... serviceInterfaces)
          Compute a list of string containing the names of all UCI services provided by the given interfaces and all of their super interfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UCI_VERSION

public static final int UCI_VERSION
The UCI version of the current set of UCI interfaces

See Also:
Constant Field Values
Method Detail

getServiceName

public static String getServiceName(Class<?> serviceInterface)
                             throws IllegalArgumentException
Retrieves the Name of the UCI service the given interface is tagged with

Parameters:
serviceInterface - a interface that is tagged with UciService
Returns:
the value of the UciService annotation
Throws:
IllegalArgumentException - if the given class is not an interface or it is not annotated with UciService

getServiceNames

public static List<String> getServiceNames(Class<?>... serviceInterfaces)
Compute a list of string containing the names of all UCI services provided by the given interfaces and all of their super interfaces.

Parameters:
serviceInterfaces - any number of interfaces to be scanned for provided services
Returns:
a list containing the service names retrieved from the UciService annotations present in the interfaces


Copyright © 2012 STARFACE GmbH. All rights reserved.