Class ObjectContextFactory
java.lang.Object
com._1c.g5.v8.internal.derived.context.ObjectContextFactory
- All Implemented Interfaces:
IObjectContextFactory
Object context factory implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectContextFactory(Collection<ITypeSpecificObjectContextFactory> typeSpecificFactories) Constructs instance of the factory using the provided set of type specific context factories. -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(String segmentId, Object objectId, org.eclipse.emf.ecore.EClass objectEClass) Creates a new instance of the DD object context.booleanisSupported(String segmentId, org.eclipse.emf.ecore.EClass objectEClass) Checks if the given object type is supported by the DD subsystem thus the context may be created
-
Constructor Details
-
ObjectContextFactory
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:IObjectContextFactoryCreates a new instance of the DD object context.- Specified by:
createContextin interfaceIObjectContextFactory- Parameters:
segmentId- The DD segment identifier.objectId- The identifier of the object to create a context for for.objectEClass- TheEClassof the object to create a context for. Cannot benull- Returns:
- A new context instance.
-
isSupported
Description copied from interface:IObjectContextFactoryChecks if the given object type is supported by the DD subsystem thus the context may be created- Specified by:
isSupportedin interfaceIObjectContextFactory- Parameters:
segmentId- The DD segment identifier. May not benullobjectEClass- TheEClassof the object to create a context for. Cannot benull- Returns:
- True if the context may be created
-