Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月30日 11:21:29

File Stats: LOC: 79   Methods: 5
NCLOC: 48 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Framework.Container\Deployer\SessionComponentDeployer.cs 0.0% 0.0% 0.0% 0.0%
coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
16   */
17   #endregion
18  
19   using System;
20   using System.Web.SessionState;
21   using Seasar.Framework.Container.Util;
22   using Seasar.Framework.Exceptions;
23  
24   namespace Seasar.Framework.Container.Deployer
25   {
26   /// <summary>
27   /// SessionComponentDeployer の概要の説明です。
28   /// </summary>
29   public class SessionComponentDeployer : AbstractComponentDeployer
30   {
31 0 public SessionComponentDeployer(IComponentDef componentDef)
32   : base(componentDef)
33   {
34   }
35  
36 0 public override object Deploy(Type receiveType)
37   {
38   IComponentDef cd = this.ComponentDef;
39   HttpSessionState session = cd.Container.Root.Session;
40   if(session == null)
41   {
42   throw new EmptyRuntimeException("session");
43   }
44   string componentName = cd.ComponentName;
45   if(componentName == null)
46   {
47   throw new EmptyRuntimeException("componentName");
48   }
49   object component = session[componentName];
50   if(component != null) return component;
51  
52   component = this.ConstructorAssembler.Assemble();
53   session[componentName] = component;
54   this.PropertyAssembler.Assemble(component);
55   this.InitMethodAssembler.Assemble(component);
56  
57   object proxy = GetProxy(receiveType);
58   return proxy == null ? component : proxy;
59   }
60  
61 0 public override void InjectDependency(object outerComponent)
62   {
63   throw new NotSupportedException("InjectDependency");
64   }
65  
66 0 public override void Init()
67   {
68   }
69  
70 0 public override void Destroy()
71   {
72   }
73  
74  
75  
76  
77   }
78   }
79