com.mf.kennewick.broker
Class BrokerRegistry

java.lang.Object
  extended bycom.mf.kennewick.broker.BrokerRegistry
Direct Known Subclasses:
EJBBrokerRegistry

public abstract class BrokerRegistry
extends java.lang.Object

Base class for Kennewick Broker registries. The broker registry's job is to instantiate brokers, speical queries, special updates, and transactions for use in the domain and delegate layers. Kennewick applications must define a "kennewick.broker.registry" property whose value is the fully qualified name of the implementing broker registry.

Author:
Jeffrey Payne

Constructor Summary
BrokerRegistry()
           
 
Method Summary
abstract  IBroker getBroker(java.lang.Class aDomainClass)
          Returns the broker used to perform mapping operations on the given Class.
abstract  IBroker getBroker(KennewickObject anObject)
          Returns the broker used to perform mapping operations on the given domain object.
abstract  ITransaction getTransaction()
          Returns a new transaction of the appropriate type for the type of persistence mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerRegistry

public BrokerRegistry()
Method Detail

getBroker

public abstract IBroker getBroker(KennewickObject anObject)
Returns the broker used to perform mapping operations on the given domain object.

Parameters:
anObject -
Returns:

getBroker

public abstract IBroker getBroker(java.lang.Class aDomainClass)
Returns the broker used to perform mapping operations on the given Class.

Parameters:
aDomainClass -
Returns:

getTransaction

public abstract ITransaction getTransaction()
Returns a new transaction of the appropriate type for the type of persistence mechanism.

Returns:


Copyright © 2004 Media Fortress, LLC, LLC. Licensed for commercial use under the Apache 2.0 License.