CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DefaultDataPortalActivator.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DefaultDataPortalActivator.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Defines a type used to activate concrete business instances.</summary>
7//-----------------------------------------------------------------------
8using Csla.Reflection;
9using System;
10
11namespace Csla.Server
12{
13 internal class DefaultDataPortalActivator : IDataPortalActivator
14 {
15 public object CreateInstance(Type requestedType)
16 {
17 return MethodCaller.CreateInstance(requestedType);
18 }
19
20 public void InitializeInstance(object obj)
21 {
22 // do no work by default
23 }
24
25 public void FinalizeInstance(object obj)
26 {
27 // do no work by default
28 }
29
30 public Type ResolveType(Type requestedType)
31 {
32 // return requested type by default
33 return requestedType;
34 }
35 }
36}