mk.fsgrep.match
Class SearchFactory

java.lang.Object
  extended by mk.fsgrep.match.SearchFactory

public class SearchFactory
extends java.lang.Object

Encapsulate the logic that determines which time of search object to use.

Author:
Murali Krishnan

Field Summary
protected static SearchFactory _instance
           
protected static java.util.Map<java.lang.String,mk.fsgrep.match.SearchFactory.Factory> SUFFIXES
           
 
Constructor Summary
protected SearchFactory()
           
 
Method Summary
 FileSearch create(java.lang.String suffix, Args args)
           
static SearchFactory getInstance()
           
static mk.fsgrep.match.SearchFactory.Factory lookupFactory(java.lang.String pSuffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

protected static final SearchFactory _instance

SUFFIXES

protected static final java.util.Map<java.lang.String,mk.fsgrep.match.SearchFactory.Factory> SUFFIXES
Constructor Detail

SearchFactory

protected SearchFactory()
Method Detail

getInstance

public static SearchFactory getInstance()

lookupFactory

public static mk.fsgrep.match.SearchFactory.Factory lookupFactory(java.lang.String pSuffix)

create

public FileSearch create(java.lang.String suffix,
                         Args args)


Copyright © 2009. All Rights Reserved.