com.wles.blm.pool
Class CallBasedContextValidator

java.lang.Object
  extended bycom.wles.blm.pool.CallBasedContextValidator
All Implemented Interfaces:
BLMContextValidator

public class CallBasedContextValidator
extends java.lang.Object
implements BLMContextValidator

Validates BLM Context Manager by calling the BLMDeclarationManager.getKind(String) method. This is a least expensive call. It assumes that there is a declaration with name 'action' and type BLMDeclarationManager.DECLARATION_KIND_ATTRIBUTE.

Author:
akapishn

Field Summary
static java.lang.String DECLARATION_NAME
           
 
Constructor Summary
CallBasedContextValidator()
           
 
Method Summary
 boolean validate(BLMContextManager context)
          Checks validity of the BLMContextManager instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECLARATION_NAME

public static final java.lang.String DECLARATION_NAME
See Also:
Constant Field Values
Constructor Detail

CallBasedContextValidator

public CallBasedContextValidator()
Method Detail

validate

public boolean validate(BLMContextManager context)
Description copied from interface: BLMContextValidator
Checks validity of the BLMContextManager instance

Specified by:
validate in interface BLMContextValidator
Parameters:
context - BLMContextManager instance to check
Returns:
true if the BLMContextManager is valid.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.