| JetActivatorCreateInstance Method (Type, DfsConfiguration, JetConfiguration, TaskContext, Object) |
Creates an instance of the specified type and configures it.
Namespace:
Ookii.Jumbo.Jet
Assembly:
Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax public static Object CreateInstance(
Type type,
DfsConfiguration dfsConfiguration,
JetConfiguration jetConfiguration,
TaskContext taskAttemptConfiguration,
params Object[] args
)
Public Shared Function CreateInstance (
type As Type,
dfsConfiguration As DfsConfiguration,
jetConfiguration As JetConfiguration,
taskAttemptConfiguration As TaskContext,
ParamArray args As Object()
) As Object
public:
static Object^ CreateInstance(
Type^ type,
DfsConfiguration^ dfsConfiguration,
JetConfiguration^ jetConfiguration,
TaskContext^ taskAttemptConfiguration,
... array<Object^>^ args
)
static member CreateInstance :
type : Type *
dfsConfiguration : DfsConfiguration *
jetConfiguration : JetConfiguration *
taskAttemptConfiguration : TaskContext *
args : Object[] -> Object
Parameters
- type
- Type: SystemType
The type to instantiate. - dfsConfiguration
- Type: Ookii.Jumbo.DfsDfsConfiguration
The configuration used to access the distributed file system. - jetConfiguration
- Type: Ookii.Jumbo.JetJetConfiguration
The configuration used to access Jet. - taskAttemptConfiguration
- Type: Ookii.Jumbo.JetTaskContext
The configuration for the task attempt. - args
- Type: SystemObject
The arguments to pass to the object's constructor.
Return Value
Type:
ObjectAn instance of the specified type with the configuration applied to it.
Remarks
This function instantiates the type specified in type, then checks if the object
implements IConfigurable and if so, applies the configuration to it.
See Also