org.granite.messaging
Class DefaultAliasRegistry

java.lang.Object
  extended by org.granite.messaging.DefaultAliasRegistry
All Implemented Interfaces:
AliasRegistry

public class DefaultAliasRegistry
extends Object
implements AliasRegistry

Author:
William DRAI

Constructor Summary
DefaultAliasRegistry()
           
 
Method Summary
 String getAliasForType(String className)
          Return the aliased server class name for a specified client class name
 String getTypeForAlias(String alias)
          Return the client class name for a specified server class alias
 void scan(Set<String> packageNames)
          Scan the specified packages for aliases classes This is called when the channel factory starts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAliasRegistry

public DefaultAliasRegistry()
Method Detail

scan

public void scan(Set<String> packageNames)
Description copied from interface: AliasRegistry
Scan the specified packages for aliases classes This is called when the channel factory starts

Specified by:
scan in interface AliasRegistry

getTypeForAlias

public String getTypeForAlias(String alias)
Description copied from interface: AliasRegistry
Return the client class name for a specified server class alias

Specified by:
getTypeForAlias in interface AliasRegistry
Parameters:
alias - server class name
Returns:
corresponding client class name

getAliasForType

public String getAliasForType(String className)
Description copied from interface: AliasRegistry
Return the aliased server class name for a specified client class name

Specified by:
getAliasForType in interface AliasRegistry
Parameters:
className - client class name
Returns:
corresponding server class name