View Javadoc

1    /****************************************************************************
2    * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the LGPL License v2.1
5    * which accompanies this distribution, and is available at
6    * http://www.gnu.org/licenses/lgpl.html
7    ****************************************************************************/
8   package it.imolinfo.jbi4corba.webservice.runtime;
9   
10  import it.imolinfo.jbi4corba.jbi.endpoint.Jbi4CorbaEndpoint;
11  import it.imolinfo.jbi4corba.webservice.generator.SearchedType;
12  import it.imolinfo.jbi4corba.webservice.generator.typedef.TypeDef;
13  
14  import java.net.URLClassLoader;
15  import java.util.List;
16  import java.util.Map;
17  import java.util.Set;
18  
19  import org.omg.CORBA.ORB;
20  
21  /**
22   * RuntimeInformation - class enclosing runtime needed information
23   * @author lghetu
24   *
25   */
26  public class RuntimeInformation {
27  
28  	private URLClassLoader modifiedClassLoader;
29  	private URLClassLoader originalClassLoader;
30  	private Map<String, SearchedType> allCorbaTypes;
31  	private Jbi4CorbaEndpoint jbi4CorbaEndpoint;
32  	private ORB orb;
33  	private Set<Class> allIDLTypes;
34  	private Map<String, List<String>> allEnumTypes;
35      private Map<String,String> idTOClassNameMap;
36      private Map<String,TypeDef> typeDefs;
37      
38      /**
39       * Ctor
40       * 
41       * @param serviceClassLoader
42       * @param corbaClassLoader
43       * @param allCorbaTypes
44       * @param jbi4CorbaEndpoint
45       * @param orb
46       * @param allIDLTypes
47       * @param allEnumTypes
48       */
49  	public RuntimeInformation(URLClassLoader serviceClassLoader,
50  			URLClassLoader corbaClassLoader,
51  			Map<String, SearchedType> allCorbaTypes,
52  			Jbi4CorbaEndpoint jbi4CorbaEndpoint, ORB orb,
53  			Set<Class> allIDLTypes, Map<String, List<String>> allEnumTypes,Map<String,String> idTOClassMap,Map<String,TypeDef> typeDefs
54  			) {
55  		super();
56  		this.modifiedClassLoader = serviceClassLoader;
57  		this.originalClassLoader = corbaClassLoader;
58  		this.allCorbaTypes = allCorbaTypes;
59  		this.jbi4CorbaEndpoint = jbi4CorbaEndpoint;
60  		this.orb = orb;
61  		this.allIDLTypes = allIDLTypes;
62  		this.allEnumTypes = allEnumTypes;
63  		this.idTOClassNameMap=idTOClassMap;
64  		this.typeDefs = typeDefs;
65  	}
66  
67  	public URLClassLoader getServiceClassLoader() {
68  		return modifiedClassLoader;
69  	}
70  
71  	public URLClassLoader getCorbaClassLoader() {
72  		return originalClassLoader;
73  	}
74  
75  	public Map<String, SearchedType> getAllCorbaTypes() {
76  		return allCorbaTypes;
77  	}
78  
79  	public Jbi4CorbaEndpoint getJbi4CorbaEndpoint() {
80  		return jbi4CorbaEndpoint;
81  	}
82  
83  	public ORB getOrb() {
84  		return orb;
85  	}
86  
87  	public Set<Class> getAllIDLTypes() {
88  		return allIDLTypes;
89  	}
90  
91  	public Map<String, List<String>> getAllEnumTypes() {
92  		return allEnumTypes;
93  	}
94  
95  	public Map<String, String> getIdTOClassNameMap() {
96          return idTOClassNameMap;
97      }
98  
99  	public Map<String, TypeDef> getTypeDefs() {
100 		return typeDefs;
101 	}
102 	
103 	
104     
105 }