org.apache.jetspeed.search.handlers
Class HandlerFactoryImpl
java.lang.Object
org.apache.jetspeed.search.handlers.HandlerFactoryImpl
- All Implemented Interfaces:
- org.apache.jetspeed.search.HandlerFactory
public class HandlerFactoryImpl
- extends Object
- implements org.apache.jetspeed.search.HandlerFactory
Search object handler factory
- Version:
- $Id: HandlerFactoryImpl.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- Mark Orciuch, Jeremy Ford
Method Summary |
void |
addClassNameMapping(String className,
String handlerClassName)
|
org.apache.jetspeed.search.ObjectHandler |
getHandler(Object obj)
Returns parsed object handler for specific object |
org.apache.jetspeed.search.ObjectHandler |
getHandler(String className)
Returns parsed object handler for specific object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handlerCache
private final Map handlerCache
classNameMapping
private Map classNameMapping
HandlerFactoryImpl
public HandlerFactoryImpl(Map classNameMapping)
addClassNameMapping
public void addClassNameMapping(String className,
String handlerClassName)
- Specified by:
addClassNameMapping
in interface org.apache.jetspeed.search.HandlerFactory
getHandler
public org.apache.jetspeed.search.ObjectHandler getHandler(Object obj)
throws Exception
- Returns parsed object handler for specific object
- Specified by:
getHandler
in interface org.apache.jetspeed.search.HandlerFactory
- Parameters:
obj
-
- Returns:
-
- Throws:
Exception
getHandler
public org.apache.jetspeed.search.ObjectHandler getHandler(String className)
throws Exception
- Returns parsed object handler for specific object
- Specified by:
getHandler
in interface org.apache.jetspeed.search.HandlerFactory
- Parameters:
obj
-
- Returns:
-
- Throws:
Exception
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.