2.17.2: 2011-06-17

net.sf.basedb.util.overview.loader
Interface NodeLoaderFactory<L,K>

All Known Implementing Classes:
BasicItemNodeLoaderFactory

public interface NodeLoaderFactory<L,K>

A node loader factory is a class that know how to create NodeLoader:s for a given key domain.

Version:
2.10
Author:
Nicklas
This class/package is not part of the Public API
This class is still being developed. It may change without notice in future versions of BASE.
Last modified
$Date: 2009-02-18 14:26:21 +0100 (Wed, 18 Feb 2009) $

Method Summary
 NodeLoader<? extends L> createNodeLoader(K key)
          Create a node loader that knows how to load nodes for items that are specified by the given key.
 

Method Detail

createNodeLoader

NodeLoader<? extends L> createNodeLoader(K key)
Create a node loader that knows how to load nodes for items that are specified by the given key. The key can be almost anything. The interpretation of it is entirely up to the factory implementation.

Parameters:
key - A key that can be used to identify which items the node loader should load
Returns:
A node loader object
Throws:
ItemNotFoundException - If a node loader for the given key can't be found. NOTE! Instead of throwing an exception it is possible to return a NullNodeLoader or any other "generic" implementation.
BaseException - If there is any other problem creating the node loader

2.17.2: 2011-06-17