Class ObjectContextFactory

java.lang.Object
com._1c.g5.v8.internal.derived.context.ObjectContextFactory
All Implemented Interfaces:
IObjectContextFactory

public class ObjectContextFactory extends Object implements IObjectContextFactory
Object context factory implementation.
  • Constructor Details

    • ObjectContextFactory

      public ObjectContextFactory(Collection<ITypeSpecificObjectContextFactory> typeSpecificFactories)
      Constructs instance of the factory using the provided set of type specific context factories.
      Parameters:
      typeSpecificFactories - The set of type-specific DD context factories.
  • Method Details

    • createContext

      public IObjectDerivedDataContext createContext(String segmentId, Object objectId, org.eclipse.emf.ecore.EClass objectEClass)
      Description copied from interface: IObjectContextFactory
      Creates a new instance of the DD object context.
      Specified by:
      createContext in interface IObjectContextFactory
      Parameters:
      segmentId - The DD segment identifier.
      objectId - The identifier of the object to create a context for for.
      objectEClass - The EClass of the object to create a context for. Cannot be null
      Returns:
      A new context instance.
    • isSupported

      public boolean isSupported(String segmentId, org.eclipse.emf.ecore.EClass objectEClass)
      Description copied from interface: IObjectContextFactory
      Checks if the given object type is supported by the DD subsystem thus the context may be created
      Specified by:
      isSupported in interface IObjectContextFactory
      Parameters:
      segmentId - The DD segment identifier. May not be null
      objectEClass - The EClass of the object to create a context for. Cannot be null
      Returns:
      True if the context may be created