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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface
Direct Known Subclasses:
EMFStorePropertiesSubInterfaceImpl, EMFStoreVersionSubInterface, EPackageSubInterfaceImpl, FileTransferSubInterfaceImpl, HistorySubInterfaceImpl, ProjectPropertiesSubInterfaceImpl, ProjectSubInterfaceImpl, UserSubInterfaceImpl, VersionSubInterfaceImpl

public abstract class AbstractSubEmfstoreInterface
extends Object

This is the super class for all subinterfaces of emfstore. Main interfaces, such as EMFStoreImpl, check and than delegates method calls to these subinterfaces, where the actual functionality is implemented. Subinterfaces shouldn't be accessed without the corresponding main interface, because they rely on the sanity checks of the main interfaces. The idea behind subinterfaces is to divide an emfstore interface into logical pieces and to avoid huge classes.

Author:
wesendon

Constructor Summary
AbstractSubEmfstoreInterface(AbstractEmfstoreInterface parentInterface)
          Default constructor.
 
Method Summary
 Object execute(Method method, Object[] args)
          Executes the given method.
 ResourceHelper getResourceHelper()
          Returns the ResourceHelper.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSubEmfstoreInterface

public AbstractSubEmfstoreInterface(AbstractEmfstoreInterface parentInterface)
                             throws FatalESException
Default constructor.

Parameters:
parentInterface - parentInterface
Throws:
FatalESException - if parent interface is null
Method Detail

getResourceHelper

public ResourceHelper getResourceHelper()
Returns the ResourceHelper.

Returns:
resourceHelper

execute

public Object execute(Method method,
                      Object[] args)
               throws ESException
Executes the given method. This will check if the method need the session id as first parameter and invoke the method with the correct parameters.

Parameters:
method - the method to invoke
args - parameters
Returns:
result of the operation
Throws:
ESException - thrown if operation could not be executed properly


Copyright © 2015. All Rights Reserved.