Protege 2.1

edu.stanford.smi.protege.model.framestore
Class MergingFrameStoreHandler

java.lang.Object
  extended byedu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
      extended byedu.stanford.smi.protege.model.framestore.MergingFrameStoreHandler
All Implemented Interfaces:
InvocationHandler

public class MergingFrameStoreHandler
extends AbstractFrameStoreInvocationHandler

All queries go to all frame stores. Writes go to the primary (delegate) frame store.

Author:
Ray Fergerson

Constructor Summary
MergingFrameStoreHandler()
           
 
Method Summary
 void addSecondaryFrameStore(FrameStore fs)
           
protected  Object handleInvoke(Method method, Object[] arguments)
           
protected  Object handleModification(Method method, Object[] arguments)
           
protected  Object handleQuery(Method method, Object[] arguments)
           
protected  Object merge(Object primary, Object secondary)
           
static FrameStore newInstance()
           
 void removeSecondaryFrameStore(FrameStore fs)
           
 
Methods inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
getDelegate, getInstance, handleClose, handleReinitialize, invoke, invoke, invoke, isModification, isQuery, newInstance, newInstance, setDelegate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergingFrameStoreHandler

public MergingFrameStoreHandler()
Method Detail

newInstance

public static FrameStore newInstance()

addSecondaryFrameStore

public void addSecondaryFrameStore(FrameStore fs)

removeSecondaryFrameStore

public void removeSecondaryFrameStore(FrameStore fs)

handleInvoke

protected Object handleInvoke(Method method,
                              Object[] arguments)
Specified by:
handleInvoke in class AbstractFrameStoreInvocationHandler

handleQuery

protected Object handleQuery(Method method,
                             Object[] arguments)

merge

protected Object merge(Object primary,
                       Object secondary)

handleModification

protected Object handleModification(Method method,
                                    Object[] arguments)

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.