Class XFactoryRegistry

  extended by org.deckfour.xes.util.XRegistry<XFactory>
      extended by org.deckfour.xes.factory.XFactoryRegistry

public class XFactoryRegistry
extends XRegistry<XFactory>

XModelFactoryRegistry is the most important integration point for external contributors, aside from the extension infrastructure. This singleton class serves as a system-wide registry for XES factory implementations. It provides a current, i.e. standard, factory implementation, which can be switched by applications. This factory will be used in any internal places, e.g., for creating models from reading XES serializations. Other, e.g. proprietary or domain-specific, implementations of the XES standard (and the OpenXES model hierarchy interface) are suggested to implement the XModelFactory interface, and to register their factory with this registry. This enables to transparently switch the storage implementation of the complete OpenXES system (wherever applicable), and every application making use of this registry to create new models.

Christian W. Guenther (

Method Summary
protected  boolean areEqual(XFactory a, XFactory b)
          Subclasses must implement this method.
static XFactoryRegistry instance()
          Retrieves the singleton registry instance.
Methods inherited from class org.deckfour.xes.util.XRegistry
currentDefault, getAvailable, isContained, register, setCurrentDefault
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static XFactoryRegistry instance()
Retrieves the singleton registry instance.


protected boolean areEqual(XFactory a,
                           XFactory b)
Description copied from class: XRegistry
Subclasses must implement this method. It is used by the registry to ensure that no duplicates are inserted.

Specified by:
areEqual in class XRegistry<XFactory>
a - An instance a.
b - Another instance b.
Whether the instances a and b are equivalent.