com.atlassian.jira.index
Class DefaultSearchExtractorRegistrationManager

java.lang.Object
  extended by com.atlassian.jira.index.DefaultSearchExtractorRegistrationManager
All Implemented Interfaces:
SearchExtractorRegistrationManager

public class DefaultSearchExtractorRegistrationManager
extends Object
implements SearchExtractorRegistrationManager

Default implementation of SearchExtractorRegistrationManager

Since:
6.2

Constructor Summary
DefaultSearchExtractorRegistrationManager()
           
 
Method Summary
<T> Collection<EntitySearchExtractor<T>>
findExtractorsForEntity(Class<T> entityClass)
          Return all extractors that can be applied for specified class no subclasses are taken into account
<T> void
register(EntitySearchExtractor<? super T> extractor, Class<T> entityClass)
          Registers extractor as capable o processing documents of specified class
<T> void
unregister(EntitySearchExtractor<? super T> extractor, Class<T> entityClass)
          Remove this extractor (identified by equals method) from processing all registered classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchExtractorRegistrationManager

public DefaultSearchExtractorRegistrationManager()
Method Detail

findExtractorsForEntity

public <T> Collection<EntitySearchExtractor<T>> findExtractorsForEntity(Class<T> entityClass)
Description copied from interface: SearchExtractorRegistrationManager
Return all extractors that can be applied for specified class no subclasses are taken into account

Specified by:
findExtractorsForEntity in interface SearchExtractorRegistrationManager
Parameters:
entityClass - class object to search for extractors
Returns:
list of extractors

register

public <T> void register(EntitySearchExtractor<? super T> extractor,
                         Class<T> entityClass)
Description copied from interface: SearchExtractorRegistrationManager
Registers extractor as capable o processing documents of specified class

Specified by:
register in interface SearchExtractorRegistrationManager
Parameters:
extractor - the extractor that will be registered for processing entities of entityClass
entityClass - class that is process by this extractor

unregister

public <T> void unregister(EntitySearchExtractor<? super T> extractor,
                           Class<T> entityClass)
Description copied from interface: SearchExtractorRegistrationManager
Remove this extractor (identified by equals method) from processing all registered classes.

Specified by:
unregister in interface SearchExtractorRegistrationManager
Parameters:
extractor - instance of extractor to be unregistered
entityClass - class that this extractor should be unregistered from.


Copyright © 2002-2014 Atlassian. All Rights Reserved.