com.silverpeas.search
Class ResultDisplayerFactory

java.lang.Object
  extended by com.silverpeas.search.ResultDisplayerFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ResultDisplayerFactory
extends Object
implements org.springframework.context.ApplicationContextAware

This class represents a ResultDisplayer object factory. It gives a main point to access each result component displayer. It uses dependency injection to retrieve ResultDisplayer component implementation. The component implementation class must be called :

 componentName + "ResultDisplayer"
 


Constructor Summary
ResultDisplayerFactory()
           
 
Method Summary
 ResultDisplayer getResultDisplayer(String name)
           
static ResultDisplayerFactory getResultDisplayerFactory()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultDisplayerFactory

public ResultDisplayerFactory()
Method Detail

getResultDisplayerFactory

public static ResultDisplayerFactory getResultDisplayerFactory()

getResultDisplayer

public ResultDisplayer getResultDisplayer(String name)
Parameters:
name - the component name
Returns:
a component ResultDisplayer using dependency injection

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2016 Silverpeas. All Rights Reserved.