pt.ist.fenixframework.atomic
Class DefaultContextFactoryViaReflection

Package class diagram package DefaultContextFactoryViaReflection
java.lang.Object
  extended by pt.ist.fenixframework.atomic.ContextFactory
      extended by pt.ist.fenixframework.atomic.DefaultContextFactoryViaReflection

public final class DefaultContextFactoryViaReflection
extends ContextFactory

This DefaultContextFactoryViaReflection tries to find, via reflection, the ContextFactory class of the backend in use. It does so, first by getting the current BackEndId (by reflection) and then by getting the factory class (through getAtomicContextFactoryClass() --- again by reflection). It delegates to that factory the creation of the appropriate AtomicContext. If it fails, it throws an Error, indicating such condition.


Constructor Summary
DefaultContextFactoryViaReflection()
           
 
Method Summary
static AtomicContext newContext(Atomic atomic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContextFactoryViaReflection

public DefaultContextFactoryViaReflection()
Method Detail

newContext

public static AtomicContext newContext(Atomic atomic)


Copyright © 2013. All Rights Reserved.