org.fuin.jmsmvc4swing.jms
Class Utils

java.lang.Object
  extended by org.fuin.jmsmvc4swing.jms.Utils

public final class Utils
extends Object

Utilities for the package.


Method Summary
static String getIdExpr(long id)
          Create a selector message for a given method call id.
static String getMessageSelector(String methodName, Long id, MessageType type)
          Create a selector message for a given method name, id and type.
static String getMessageSelector(String methodName, Long id, MessageType[] type)
          Create a selector message for a given method name, id and types.
static String getMethodExpr(String methodName)
          Create a selector message for a given method name.
static String getTypeExpr(MessageType type)
          Create a selector message for a given message type.
static String getTypeExpr(MessageType[] type)
          Create a selector message for given message types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTypeExpr

public static String getTypeExpr(MessageType type)
Create a selector message for a given message type.

Parameters:
type - Message type.
Returns:
A string that can be used for a selector.

getTypeExpr

public static String getTypeExpr(MessageType[] type)
Create a selector message for given message types.

Parameters:
type - Message types.
Returns:
A string that can be used for a selector.

getMethodExpr

public static String getMethodExpr(String methodName)
Create a selector message for a given method name.

Parameters:
methodName - Name of a method.
Returns:
A string that can be used for a selector.

getIdExpr

public static String getIdExpr(long id)
Create a selector message for a given method call id.

Parameters:
id - Unique method call id.
Returns:
A string that can be used for a selector.

getMessageSelector

public static String getMessageSelector(String methodName,
                                        Long id,
                                        MessageType type)
Create a selector message for a given method name, id and type.

Parameters:
methodName - Name of a method - Can be null.
id - Unique method call id - Can be null.
type - Message type - Can be NULL.
Returns:
A string that can be used for a selector.

getMessageSelector

public static String getMessageSelector(String methodName,
                                        Long id,
                                        MessageType[] type)
Create a selector message for a given method name, id and types.

Parameters:
methodName - Name of a method - Can be null.
id - Unique method call id - Can be null.
type - Message types - Can be NULL.
Returns:
A string that can be used for a selector.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.