Last change
on this file since 7475 was 7475, checked in by cs025, 20 years ago |
Improved factory methods for indexer creation
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
363 bytes
|
Rev | Line | |
---|
[6736] | 1 | package org.greenstone.gsdl3.gs3build.indexers;
|
---|
| 2 |
|
---|
| 3 | public class IndexerFactory
|
---|
| 4 | { public static final IndexerInterface makeIndexer(String type, String name)
|
---|
| 5 | { if (type.equals(MGIndexer.MG_INDEX_TYPE))
|
---|
| 6 | { return new MGIndexer(name);
|
---|
| 7 | }
|
---|
[7475] | 8 | else if (type.equals(MGPPIndexer.MGPP_INDEX_TYPE)) {
|
---|
| 9 | return new MGPPIndexer(name);
|
---|
| 10 | }
|
---|
[6736] | 11 | return null;
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.