org.jboss.metadata.ejb.jboss.jndipolicy.spi
Class KnownInterfaces

java.lang.Object
  extended by org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces

public final class KnownInterfaces
extends Object

Constants for known interfaces that may be passed to DefaultJndiBindingPolicy#getJndiName(EjbDeploymentSummary, String)

Version:
$Revision:$
Author:
Scott.Stark@jboss.org

Nested Class Summary
static class KnownInterfaces.KnownInterfaceType
          Enums for the standard types of ejb interfaces
 
Field Summary
static String HOME
           
static String LOCAL
           
static String LOCAL_HOME
           
static String REMOTE
           
static String UNKNOWN
           
 
Constructor Summary
KnownInterfaces()
           
 
Method Summary
static KnownInterfaces.KnownInterfaceType classifyInterface(String iface)
          Utility method that compares iface to one of the KnownInterfaces constants and returns the corresponding enum.
static boolean isKnownInterface(String iface)
          Is iface one of the KnownInterfaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL

public static final String LOCAL
See Also:
Constant Field Values

LOCAL_HOME

public static final String LOCAL_HOME
See Also:
Constant Field Values

REMOTE

public static final String REMOTE
See Also:
Constant Field Values

HOME

public static final String HOME
See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values
Constructor Detail

KnownInterfaces

public KnownInterfaces()
Method Detail

isKnownInterface

public static boolean isKnownInterface(String iface)
Is iface one of the KnownInterfaces

Parameters:
iface - - the interface name to compare in a case insensitive manner.
Returns:
true if iface is one of the KnownInterfaces constants, false otherwise.

classifyInterface

public static KnownInterfaces.KnownInterfaceType classifyInterface(String iface)
Utility method that compares iface to one of the KnownInterfaces constants and returns the corresponding enum.

Parameters:
iface - - a
Returns:
a KnownInterfaceType


Copyright © 2009 JBoss Inc.. All Rights Reserved.