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.boolean
isSupported
(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:IObjectContextFactory
Creates a new instance of the DD object context.- Specified by:
createContext
in interfaceIObjectContextFactory
- Parameters:
segmentId
- The DD segment identifier.objectId
- The identifier of the object to create a context for for.objectEClass
- TheEClass
of the object to create a context for. Cannot benull
- Returns:
- A new context instance.
-
isSupported
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 interfaceIObjectContextFactory
- Parameters:
segmentId
- The DD segment identifier. May not benull
objectEClass
- TheEClass
of the object to create a context for. Cannot benull
- Returns:
- True if the context may be created
-