TaskBean API
0.5

glogic.jthin.serv
Class ProductFinder

java.lang.Object
  extended byglogic.jthin.serv.ProductFinder

public class ProductFinder
extends java.lang.Object

Contains all available products and their configurations.

Author:
Sam Taha

Method Summary
 void addProduct(ProductConfig prodConfig)
           
 java.util.Collection getAllProducts()
          Returns all available products defined in the system.
static ProductFinder getInstance()
           
 ProductConfig getProduct(java.lang.String stProductName)
          Avoid using this version as it is slower than the Integer version above.
 boolean isValidProduct(java.lang.String name)
          Check if product exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProductFinder getInstance()

addProduct

public void addProduct(ProductConfig prodConfig)

getAllProducts

public java.util.Collection getAllProducts()
Returns all available products defined in the system.

Returns:
Collection of ProductConfig objects.

getProduct

public ProductConfig getProduct(java.lang.String stProductName)
Avoid using this version as it is slower than the Integer version above.

Parameters:
stProductName - Description of the Parameter
Returns:
null if no match found

isValidProduct

public boolean isValidProduct(java.lang.String name)
Check if product exists.

Returns:
The validProduct value

TaskBean API
0.5

Copyright © Grand Logic, Inc. All Rights Reserved.