com.atlassian.jira.sharing.index
Class MemoryDirectoryFactory

java.lang.Object
  extended by com.atlassian.jira.sharing.index.MemoryDirectoryFactory
All Implemented Interfaces:
DirectoryFactory, com.atlassian.util.concurrent.Function<SharedEntity.TypeDescriptor<?>,org.apache.lucene.store.Directory>

public class MemoryDirectoryFactory
extends Object
implements DirectoryFactory

An implementation of DirectoryFactory that uses a RAMDirectory This is for testing only


Constructor Summary
MemoryDirectoryFactory()
           
 
Method Summary
 org.apache.lucene.store.Directory get(SharedEntity.TypeDescriptor<?> input)
          Resolves an output where an input is given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryDirectoryFactory

public MemoryDirectoryFactory()
Method Detail

get

public org.apache.lucene.store.Directory get(SharedEntity.TypeDescriptor<?> input)
Description copied from interface: Function
Resolves an output where an input is given.

Specified by:
get in interface com.atlassian.util.concurrent.Function<SharedEntity.TypeDescriptor<?>,org.apache.lucene.store.Directory>
Parameters:
input - an object of type D.
Returns:
the output of type R.


Copyright © 2002-2012 Atlassian. All Rights Reserved.