edu.stanford.smi.protege.model.framestore
Class AbstractFrameStoreInvocationHandler
java.lang.Object
edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
- All Implemented Interfaces:
- InvocationHandler
- Direct Known Subclasses:
- CallCachingFrameStore, JournalingFrameStoreHandler, LastUsageInvocationHandler, LocalizeFrameStoreHandler, ReadAccessEnforcementFrameStore, ReadOnlyFrameStoreHandler, TraceFrameStoreHandler
public abstract class AbstractFrameStoreInvocationHandler
- extends Object
- implements InvocationHandler
AbstractFrameStoreInvocationHandler
public AbstractFrameStoreInvocationHandler()
getDelegate
protected FrameStore getDelegate()
setDelegate
protected void setDelegate(FrameStore delegate)
- This methods sets the delegate for this InvocationHandler and for
the associated frame store. It is only called by the InvocationHandler but
it is overridden by classes such as the CallCachingFrameStore.
- Parameters:
delegate
- the delegate FrameStore.
newInstance
public static FrameStore newInstance(Class handlerClass)
getInstance
public static Object getInstance(Class clas,
KnowledgeBase kb)
throws IllegalAccessException,
InstantiationException,
InvocationTargetException
- Throws:
IllegalAccessException
InstantiationException
InvocationTargetException
newInstance
public static FrameStore newInstance(Class handlerClass,
KnowledgeBase kb)
isQuery
protected static boolean isQuery(Method method)
isModification
protected static boolean isModification(Method method)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
- Specified by:
invoke
in interface InvocationHandler
handleReinitialize
protected void handleReinitialize()
handleClose
protected void handleClose()
handleInvoke
protected abstract Object handleInvoke(Method method,
Object[] args)
executeQuery
protected abstract void executeQuery(Query q,
QueryCallback qc)
invoke
protected Object invoke(Method m,
Object[] args)
invoke
protected static Object invoke(Method m,
Object[] args,
FrameStore frameStore)
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.