Protege 3.0

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 3.0

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