de.janrufmonitor.repository.identify
Class Identifier

java.lang.Object
  extended by de.janrufmonitor.repository.identify.Identifier

public final class Identifier
extends Object

Static class implementation of an identification which makes use of the framework.

Author:
Thilo Brandt

Constructor Summary
Identifier()
           
 
Method Summary
static ICaller identify(IRuntime r, IPhonenumber pn)
          Identifies a caller with all active caller managers specified in the configuration.
static ICaller identify(IRuntime r, IPhonenumber pn, List activeCallerManagers)
          Identifies a caller with all active caller managers specified in the configuration.
static ICaller identifyDefault(IRuntime r, IPhonenumber pn)
          Identifies a caller with the default caller manager specified in the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identifier

public Identifier()
Method Detail

identify

public static ICaller identify(IRuntime r,
                               IPhonenumber pn)
Identifies a caller with all active caller managers specified in the configuration.

Parameters:
r - the current runtime
pn - a valid number, should not be a clired number or null
Returns:
an identified ICaller object or null, if not identified by any caller manager

identifyDefault

public static ICaller identifyDefault(IRuntime r,
                                      IPhonenumber pn)
Identifies a caller with the default caller manager specified in the configuration.

Parameters:
r - the current runtime
pn - a valid number, should not be a clired number or null
Returns:
an identified ICaller object or null, if not identified by the default caller manager

identify

public static ICaller identify(IRuntime r,
                               IPhonenumber pn,
                               List activeCallerManagers)
Identifies a caller with all active caller managers specified in the configuration.

Parameters:
r - the current runtime
pn - a valid number, should not be a clired number or null
activeCallerManagers - a list of active caller managers
Returns:
an identified ICaller object or null, if not identified by any caller manager


Copyright © 2010 by Thilo Brandt. All Rights Reserved.