org.eclipse.emf.emfstore.internal.server.core
Class EMFStoreImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.core.AbstractEmfstoreInterface
      extended by org.eclipse.emf.emfstore.internal.server.core.EMFStoreImpl
All Implemented Interfaces:
InvocationHandler

public class EMFStoreImpl
extends AbstractEmfstoreInterface
implements InvocationHandler

This is the main implementation of EMFStore.

Author:
wesendon
See Also:
EMFStore

Constructor Summary
EMFStoreImpl(ServerSpace serverSpace, AuthorizationControl authorizationControl)
          Default constructor.
 
Method Summary
static EMFStore createInterface(ServerSpace serverSpace, AuthorizationControl accessControl)
          creates a dynamic proxy backed by EmfStoreImpl.
 Object invoke(Object obj, Method method, Object[] args)
          
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.core.AbstractEmfstoreInterface
runCommand
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFStoreImpl

public EMFStoreImpl(ServerSpace serverSpace,
                    AuthorizationControl authorizationControl)
             throws FatalESException
Default constructor.

Parameters:
serverSpace - the ServerSpace
authorizationControl - the AuthorizationControl
Throws:
FatalESException - in case of failure
Method Detail

invoke

public Object invoke(Object obj,
                     Method method,
                     Object[] args)
              throws ESException

Specified by:
invoke in interface InvocationHandler
Throws:
ESException
See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])

createInterface

public static EMFStore createInterface(ServerSpace serverSpace,
                                       AuthorizationControl accessControl)
                                throws IllegalArgumentException,
                                       FatalESException
creates a dynamic proxy backed by EmfStoreImpl.

Parameters:
serverSpace - the server space
accessControl - an access control instance
Returns:
an instance of emfstore
Throws:
IllegalArgumentException - thrown by Proxy.newInstance
FatalESException - thrown if something fatal happens


Copyright © 2015. All Rights Reserved.