Table of Contents

Class RuntimeDataContainerFactory

Namespace
FishMMO.Server.Implementation
Assembly
FishMMO.Server.dll

Factory for creating RuntimeDataContainer instances via reflection. Validates container types and instantiates them using parameterless constructors.

public class RuntimeDataContainerFactory : IRuntimeDataContainerFactory
Inheritance
RuntimeDataContainerFactory
Implements
Inherited Members

Methods

CreateContainer(Type)

Creates an instance of the specified RuntimeDataContainer type using reflection.

public IRuntimeDataContainer CreateContainer(Type containerType)

Parameters

containerType Type

The concrete container type to instantiate.

Returns

IRuntimeDataContainer

The created container instance.

Exceptions

InvalidOperationException

Thrown if the type is not a valid container type.

IsValidContainerType(Type)

Validates that a type is a valid concrete RuntimeDataContainer.

public bool IsValidContainerType(Type type)

Parameters

type Type

The type to validate.

Returns

bool

True if the type is a valid container type, false otherwise.