torquebox-container-foundation 1.0.0.CR1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/lib/acl-spi-3.0.0.CR2.jar +0 -0
  2. data/lib/activation-1.1.jar +0 -0
  3. data/lib/ant-1.7.1.jar +0 -0
  4. data/lib/ant-launcher-1.7.1.jar +0 -0
  5. data/lib/authorization-spi-3.0.0.CR2.jar +0 -0
  6. data/lib/dtdparser-1.21.jar +0 -0
  7. data/lib/gem_hook.rb +18 -0
  8. data/lib/identity-spi-3.0.0.CR2.jar +0 -0
  9. data/lib/javassist-3.12.1.GA.jar +0 -0
  10. data/lib/javax.inject-1.jar +0 -0
  11. data/lib/jaxb-api-2.1.9.jar +0 -0
  12. data/lib/jboss-aop-2.2.1.GA.jar +0 -0
  13. data/lib/jboss-aop-mc-int-2.2.0.GA.jar +0 -0
  14. data/lib/jboss-bootstrap-api-2.1.0-alpha-5.jar +0 -0
  15. data/lib/jboss-bootstrap-api-mc-2.1.0-alpha-5.jar +0 -0
  16. data/lib/jboss-bootstrap-impl-base-2.1.0-alpha-5.jar +0 -0
  17. data/lib/jboss-bootstrap-impl-mc-2.1.0-alpha-5.jar +0 -0
  18. data/lib/jboss-bootstrap-spi-2.1.0-alpha-5.jar +0 -0
  19. data/lib/jboss-bootstrap-spi-mc-2.1.0-alpha-5.jar +0 -0
  20. data/lib/jboss-classloader-2.2.0.GA.jar +0 -0
  21. data/lib/jboss-classloading-2.2.0.GA.jar +0 -0
  22. data/lib/jboss-classloading-spi-6.0.0.CR1.jar +0 -0
  23. data/lib/jboss-classloading-vfs-2.2.0.GA.jar +0 -0
  24. data/lib/jboss-classpool-1.0.0.GA.jar +0 -0
  25. data/lib/jboss-classpool-scoped-1.0.0.GA.jar +0 -0
  26. data/lib/jboss-common-core-2.2.17.GA.jar +0 -0
  27. data/lib/jboss-dependency-2.2.0.GA.jar +0 -0
  28. data/lib/jboss-deployers-client-2.2.0.GA.jar +0 -0
  29. data/lib/jboss-deployers-client-spi-2.2.0.GA.jar +0 -0
  30. data/lib/jboss-deployers-core-2.2.0.GA.jar +0 -0
  31. data/lib/jboss-deployers-core-spi-2.2.0.GA.jar +0 -0
  32. data/lib/jboss-deployers-impl-2.2.0.GA.jar +0 -0
  33. data/lib/jboss-deployers-spi-2.2.0.GA.jar +0 -0
  34. data/lib/jboss-deployers-structure-spi-2.2.0.GA.jar +0 -0
  35. data/lib/jboss-deployers-vfs-2.2.0.GA.jar +0 -0
  36. data/lib/jboss-deployers-vfs-spi-2.2.0.GA.jar +0 -0
  37. data/lib/jboss-kernel-2.2.0.GA.jar +0 -0
  38. data/lib/jboss-logging-3.0.0.Beta4.jar +0 -0
  39. data/lib/jboss-logging-log4j-2.1.1.GA.jar +0 -0
  40. data/lib/jboss-logging-spi-2.1.1.GA.jar +0 -0
  41. data/lib/jboss-logmanager-1.2.0.CR9.jar +0 -0
  42. data/lib/jboss-logmanager-log4j-1.0.0.CR3.jar +0 -0
  43. data/lib/jboss-managed-2.1.1.SP2.jar +0 -0
  44. data/lib/jboss-mdr-2.2.0.GA.jar +0 -0
  45. data/lib/jboss-metatype-2.1.1.SP2.jar +0 -0
  46. data/lib/jboss-reflect-2.2.0.GA.jar +0 -0
  47. data/lib/jboss-reloaded-vdf-bootstrap-minimal-0.1.2.jar +0 -0
  48. data/lib/jboss-vfs-3.0.0.GA.jar +0 -0
  49. data/lib/jbosssx-3.0.0.CR2.jar +0 -0
  50. data/lib/jbosssx-bare-3.0.0.CR2.jar +0 -0
  51. data/lib/jbossxacml-2.0.5.CR1.jar +0 -0
  52. data/lib/jbossxb-2.0.3.GA.jar +0 -0
  53. data/lib/jnp-client-5.0.5.Final.jar +0 -0
  54. data/lib/jruby-complete-1.6.1.jar +0 -0
  55. data/lib/log4j-1.2.14.jar +0 -0
  56. data/lib/org.torquebox.container-foundation.rb +20 -0
  57. data/lib/picketbox-acl-impl-3.0.0.CR2.jar +0 -0
  58. data/lib/picketbox-bare-3.0.0.CR2.jar +0 -0
  59. data/lib/picketbox-identity-impl-3.0.0.CR2.jar +0 -0
  60. data/lib/picketbox-spi-bare-3.0.0.CR2.jar +0 -0
  61. data/lib/qdox-1.6.1.jar +0 -0
  62. data/lib/scanning-impl-1.0.0.GA.jar +0 -0
  63. data/lib/scanning-plugins-1.0.0.GA.jar +0 -0
  64. data/lib/scanning-spi-1.0.0.GA.jar +0 -0
  65. data/lib/shrinkwrap-api-1.0.0-alpha-11.jar +0 -0
  66. data/lib/snakeyaml-1.5.jar +0 -0
  67. data/lib/stax-api-1.0.1.jar +0 -0
  68. data/lib/torquebox-base-core.jar +0 -0
  69. data/lib/torquebox-base-int.jar +0 -0
  70. data/lib/torquebox-base-metadata.jar +0 -0
  71. data/lib/torquebox-base-spi.jar +0 -0
  72. data/lib/torquebox-container-foundation.jar +0 -0
  73. data/lib/torquebox-container-foundation.rb +86 -0
  74. data/lib/torquebox-mc-support.jar +0 -0
  75. data/lib/torquebox/container/foundation-bootstrap-jboss-beans.xml +25 -0
  76. data/lib/torquebox/container/foundation-jboss-beans.xml +25 -0
  77. data/lib/torquebox/container/foundation.rb +141 -0
  78. data/lib/torquebox/container/foundation_command.rb +83 -0
  79. data/lib/torquebox/container/foundation_enabler.rb +28 -0
  80. data/lib/torquebox/container/log4j.xml +33 -0
  81. data/lib/trove-1.0.2.jar +0 -0
  82. data/lib/xercesImpl-2.9.1.jar +0 -0
  83. data/lib/xml-apis-1.3.04.jar +0 -0
  84. data/licenses/lgpl-2.1.txt +504 -0
  85. data/spec/container_spec.rb +50 -0
  86. metadata +161 -0
Binary file
Binary file
data/lib/ant-1.7.1.jar ADDED
Binary file
Binary file
Binary file
Binary file
data/lib/gem_hook.rb ADDED
@@ -0,0 +1,18 @@
1
+ # Copyright 2008-2011 Red Hat, Inc, and individual contributors.
2
+ #
3
+ # This is free software; you can redistribute it and/or modify it
4
+ # under the terms of the GNU Lesser General Public License as
5
+ # published by the Free Software Foundation; either version 2.1 of
6
+ # the License, or (at your option) any later version.
7
+ #
8
+ # This software is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this software; if not, write to the Free
15
+ # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16
+ # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
17
+
18
+ require 'torquebox/container/foundation'
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,20 @@
1
+ # Copyright 2008-2011 Red Hat, Inc, and individual contributors.
2
+ #
3
+ # This is free software; you can redistribute it and/or modify it
4
+ # under the terms of the GNU Lesser General Public License as
5
+ # published by the Free Software Foundation; either version 2.1 of
6
+ # the License, or (at your option) any later version.
7
+ #
8
+ # This software is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this software; if not, write to the Free
15
+ # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16
+ # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
17
+
18
+ # Backwards-compatibility
19
+ $stderr.puts "Usage of 'org.torquebox.container-foundation' is deprecated. Please use 'torquebox-container-foundation'."
20
+ require 'torquebox-container-foundation'
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,86 @@
1
+ module TorqueboxContainerFoundation
2
+ VERSION = '1.0.0.CR1'
3
+ MAVEN_VERSION = '1.0.0.CR1'
4
+ end
5
+ begin
6
+ require 'java'
7
+ require File.dirname(__FILE__) + '/torquebox-container-foundation.jar'
8
+ require File.dirname(__FILE__) + '/jboss-aop-mc-int-2.2.0.GA.jar'
9
+ require File.dirname(__FILE__) + '/jboss-kernel-2.2.0.GA.jar'
10
+ require File.dirname(__FILE__) + '/jboss-dependency-2.2.0.GA.jar'
11
+ require File.dirname(__FILE__) + '/jboss-reflect-2.2.0.GA.jar'
12
+ require File.dirname(__FILE__) + '/jboss-common-core-2.2.17.GA.jar'
13
+ require File.dirname(__FILE__) + '/jboss-mdr-2.2.0.GA.jar'
14
+ require File.dirname(__FILE__) + '/jbossxb-2.0.3.GA.jar'
15
+ require File.dirname(__FILE__) + '/xml-apis-1.3.04.jar'
16
+ require File.dirname(__FILE__) + '/xercesImpl-2.9.1.jar'
17
+ require File.dirname(__FILE__) + '/dtdparser-1.21.jar'
18
+ require File.dirname(__FILE__) + '/activation-1.1.jar'
19
+ require File.dirname(__FILE__) + '/jaxb-api-2.1.9.jar'
20
+ require File.dirname(__FILE__) + '/javax.inject-1.jar'
21
+ require File.dirname(__FILE__) + '/javassist-3.12.1.GA.jar'
22
+ require File.dirname(__FILE__) + '/jboss-aop-2.2.1.GA.jar'
23
+ require File.dirname(__FILE__) + '/ant-1.7.1.jar'
24
+ require File.dirname(__FILE__) + '/ant-launcher-1.7.1.jar'
25
+ require File.dirname(__FILE__) + '/jboss-classpool-scoped-1.0.0.GA.jar'
26
+ require File.dirname(__FILE__) + '/jboss-classpool-1.0.0.GA.jar'
27
+ require File.dirname(__FILE__) + '/qdox-1.6.1.jar'
28
+ require File.dirname(__FILE__) + '/trove-1.0.2.jar'
29
+ require File.dirname(__FILE__) + '/log4j-1.2.14.jar'
30
+ require File.dirname(__FILE__) + '/jboss-deployers-vfs-spi-2.2.0.GA.jar'
31
+ require File.dirname(__FILE__) + '/jboss-vfs-3.0.0.GA.jar'
32
+ require File.dirname(__FILE__) + '/jboss-deployers-spi-2.2.0.GA.jar'
33
+ require File.dirname(__FILE__) + '/jboss-deployers-structure-spi-2.2.0.GA.jar'
34
+ require File.dirname(__FILE__) + '/jboss-deployers-client-spi-2.2.0.GA.jar'
35
+ require File.dirname(__FILE__) + '/jboss-deployers-core-spi-2.2.0.GA.jar'
36
+ require File.dirname(__FILE__) + '/jboss-managed-2.1.1.SP2.jar'
37
+ require File.dirname(__FILE__) + '/jboss-metatype-2.1.1.SP2.jar'
38
+ require File.dirname(__FILE__) + '/jboss-classloading-spi-6.0.0.CR1.jar'
39
+ require File.dirname(__FILE__) + '/jboss-classloader-2.2.0.GA.jar'
40
+ require File.dirname(__FILE__) + '/jboss-classloading-2.2.0.GA.jar'
41
+ require File.dirname(__FILE__) + '/stax-api-1.0.1.jar'
42
+ require File.dirname(__FILE__) + '/jboss-deployers-impl-2.2.0.GA.jar'
43
+ require File.dirname(__FILE__) + '/scanning-spi-1.0.0.GA.jar'
44
+ require File.dirname(__FILE__) + '/scanning-plugins-1.0.0.GA.jar'
45
+ require File.dirname(__FILE__) + '/scanning-impl-1.0.0.GA.jar'
46
+ require File.dirname(__FILE__) + '/jboss-reloaded-vdf-bootstrap-minimal-0.1.2.jar'
47
+ require File.dirname(__FILE__) + '/jboss-bootstrap-impl-mc-2.1.0-alpha-5.jar'
48
+ require File.dirname(__FILE__) + '/jboss-bootstrap-impl-base-2.1.0-alpha-5.jar'
49
+ require File.dirname(__FILE__) + '/jboss-bootstrap-spi-2.1.0-alpha-5.jar'
50
+ require File.dirname(__FILE__) + '/jboss-bootstrap-api-2.1.0-alpha-5.jar'
51
+ require File.dirname(__FILE__) + '/jboss-bootstrap-spi-mc-2.1.0-alpha-5.jar'
52
+ require File.dirname(__FILE__) + '/jboss-bootstrap-api-mc-2.1.0-alpha-5.jar'
53
+ require File.dirname(__FILE__) + '/jboss-deployers-vfs-2.2.0.GA.jar'
54
+ require File.dirname(__FILE__) + '/jboss-classloading-vfs-2.2.0.GA.jar'
55
+ require File.dirname(__FILE__) + '/jboss-deployers-core-2.2.0.GA.jar'
56
+ require File.dirname(__FILE__) + '/jboss-deployers-client-2.2.0.GA.jar'
57
+ require File.dirname(__FILE__) + '/shrinkwrap-api-1.0.0-alpha-11.jar'
58
+ require File.dirname(__FILE__) + '/jboss-logging-3.0.0.Beta4.jar'
59
+ require File.dirname(__FILE__) + '/jboss-logging-log4j-2.1.1.GA.jar'
60
+ require File.dirname(__FILE__) + '/jboss-logging-spi-2.1.1.GA.jar'
61
+ require File.dirname(__FILE__) + '/jboss-logmanager-1.2.0.CR9.jar'
62
+ require File.dirname(__FILE__) + '/jboss-logmanager-log4j-1.0.0.CR3.jar'
63
+ require File.dirname(__FILE__) + '/jnp-client-5.0.5.Final.jar'
64
+ require File.dirname(__FILE__) + '/torquebox-base-spi.jar'
65
+ require File.dirname(__FILE__) + '/torquebox-base-int.jar'
66
+ require File.dirname(__FILE__) + '/jbosssx-3.0.0.CR2.jar'
67
+ require File.dirname(__FILE__) + '/jruby-complete-1.6.1.jar'
68
+ require File.dirname(__FILE__) + '/snakeyaml-1.5.jar'
69
+ require File.dirname(__FILE__) + '/torquebox-base-metadata.jar'
70
+ require File.dirname(__FILE__) + '/torquebox-base-core.jar'
71
+ require File.dirname(__FILE__) + '/picketbox-bare-3.0.0.CR2.jar'
72
+ require File.dirname(__FILE__) + '/identity-spi-3.0.0.CR2.jar'
73
+ require File.dirname(__FILE__) + '/authorization-spi-3.0.0.CR2.jar'
74
+ require File.dirname(__FILE__) + '/acl-spi-3.0.0.CR2.jar'
75
+ require File.dirname(__FILE__) + '/jbosssx-bare-3.0.0.CR2.jar'
76
+ require File.dirname(__FILE__) + '/picketbox-identity-impl-3.0.0.CR2.jar'
77
+ require File.dirname(__FILE__) + '/picketbox-spi-bare-3.0.0.CR2.jar'
78
+ require File.dirname(__FILE__) + '/picketbox-acl-impl-3.0.0.CR2.jar'
79
+ require File.dirname(__FILE__) + '/jbossxacml-2.0.5.CR1.jar'
80
+ require File.dirname(__FILE__) + '/torquebox-mc-support.jar'
81
+ rescue LoadError
82
+ puts 'JAR-based gems require JRuby to load. Please visit www.jruby.org.'
83
+ raise
84
+ end
85
+
86
+ load File.dirname(__FILE__) + '/gem_hook.rb' if File.exists?( File.dirname(__FILE__) + '/gem_hook.rb')
Binary file
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <deployment xmlns="urn:jboss:bean-deployer:2.0">
4
+ <bean name="JNDIKernelRegistryPlugin" class="org.torquebox.mc.JNDIKernelRegistryPlugin">
5
+ <!--
6
+ <property name="environment">
7
+ <map class="java.util.Hashtable" keyClass="java.lang.String" valueClass="java.lang.String">
8
+ <entry>
9
+ <key>java.naming.provider.url</key>
10
+ <value>jnp://10.42.42.11:1099/</value>
11
+ </entry>
12
+ <entry>
13
+ <key>java.naming.factory.initial</key>
14
+ <value>org.jnp.interfaces.NamingContextFactory</value>
15
+ </entry>
16
+ <entry>
17
+ <key>java.naming.factory.url.pkgs</key>
18
+ <value>org.jboss.naming:org.jnp.interfaces</value>
19
+ </entry>
20
+ </map>
21
+ </property>
22
+ -->
23
+ </bean>
24
+ </deployment>
25
+
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <deployment xmlns="urn:jboss:bean-deployer:2.0">
4
+
5
+
6
+ <bean name="Ruby" class="org.jruby.Ruby">
7
+ <constructor factoryClass="org.jruby.Ruby" factoryMethod="getGlobalRuntime"/>
8
+ </bean>
9
+
10
+ <bean name="JRubyClassLoader">
11
+ <constructor factoryMethod="getJRubyClassLoader">
12
+ <factory bean="Ruby"/>
13
+ </constructor>
14
+ </bean>
15
+
16
+ <bean name="RubyRuntimeFactory" class="org.torquebox.interp.core.SingletonRubyRuntimeFactory">
17
+ <property name="ruby">
18
+ <inject bean="Ruby"/>
19
+ </property>
20
+ </bean>
21
+
22
+ <bean name="RuntimePoolDeployer" class="org.torquebox.interp.deployers.RuntimePoolDeployer"/>
23
+
24
+ </deployment>
25
+
@@ -0,0 +1,141 @@
1
+ # Copyright 2008-2011 Red Hat, Inc, and individual contributors.
2
+ #
3
+ # This is free software; you can redistribute it and/or modify it
4
+ # under the terms of the GNU Lesser General Public License as
5
+ # published by the Free Software Foundation; either version 2.1 of
6
+ # the License, or (at your option) any later version.
7
+ #
8
+ # This software is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this software; if not, write to the Free
15
+ # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16
+ # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
17
+
18
+ require 'ostruct'
19
+ require 'torquebox/kernel'
20
+ require 'torquebox/container/foundation_enabler'
21
+ require 'jruby'
22
+
23
+ module TorqueBox
24
+ module Container
25
+ class Foundation
26
+
27
+ MC_MAIN_DEPLOYER_NAME = "MainDeployer"
28
+
29
+ def initialize()
30
+ @logger = org.jboss.logging::Logger.getLogger( 'org.torquebox.containers.Foundation' )
31
+ @classloader = JRuby.runtime.jruby_class_loader
32
+ @server = Java::org.jboss.bootstrap.api.mc.server::MCServerFactory.createServer( @classloader )
33
+
34
+ descriptors = @server.configuration.bootstrap_descriptors
35
+ descriptors << Java::org.jboss.reloaded.api::ReloadedDescriptors.class_loading_descriptor
36
+ descriptors << Java::org.jboss.reloaded.api::ReloadedDescriptors.vdf_descriptor
37
+ descriptors << org.jboss.bootstrap.api.descriptor::FileBootstrapDescriptor.new( java.io::File.new( File.join( File.dirname(__FILE__), 'foundation-bootstrap-jboss-beans.xml' ) ) )
38
+ @enablers = []
39
+ enable( FoundationEnabler )
40
+ end
41
+
42
+ def enable(enabler_or_class,&block)
43
+ enabler = nil
44
+ if ( enabler_or_class.is_a?( Class ) )
45
+ enabler = enabler_or_class.new( &block )
46
+ else
47
+ enabler = enabler_or_class
48
+ end
49
+
50
+ wrapper = OpenStruct.new( :enabler=>enabler, :deployments=>[] )
51
+ @enablers << wrapper
52
+ end
53
+
54
+ def start
55
+ @server.start
56
+ TorqueBox::Kernel.kernel = kernel
57
+
58
+ beans_xml = File.join( File.dirname(__FILE__), 'foundation-jboss-beans.xml' )
59
+
60
+ @enablers.each do |wrapper|
61
+ if ( wrapper.enabler.respond_to?( :before_start ) )
62
+ wrapper.enabler.send( :before_start, self )
63
+ end
64
+ wrapper.enabler.fundamental_deployment_paths.each do |path|
65
+ wrapper.deployments << deploy(path)
66
+ end
67
+ end
68
+
69
+ process_deployments( true )
70
+
71
+ @enablers.each do |wrapper|
72
+ if ( wrapper.enabler.respond_to?( :after_start ) )
73
+ wrapper.enabler.send( :after_start, self )
74
+ end
75
+ end
76
+ end
77
+
78
+ def stop
79
+ @enablers.reverse.each do |wrapper|
80
+ wrapper.deployments.each do |deployment|
81
+ name = Java::java.lang::String.new( deployment.name )
82
+ undeploy( name )
83
+ end
84
+ end
85
+
86
+ process_deployments( true )
87
+ @server.stop
88
+ end
89
+
90
+ def deploy(path)
91
+ virtual_file = Java::org.jboss.vfs::VFS.getChild( path )
92
+ deployment_factory = Java::org.jboss.deployers.vfs.spi.client::VFSDeploymentFactory.instance
93
+ deployment = deployment_factory.createVFSDeployment(virtual_file)
94
+ main_deployer.addDeployment(deployment)
95
+ deployment
96
+ end
97
+
98
+ def deploy_as(path, name)
99
+ virtual_file = Java::org.jboss.vfs::VFS.getChild( path )
100
+ deployment_factory = Java::org.jboss.deployers.vfs.spi.client::VFSDeploymentFactory.instance
101
+ deployment = deployment_factory.createVFSDeployment(name, virtual_file)
102
+ main_deployer.addDeployment(deployment)
103
+ deployment
104
+ end
105
+
106
+ def undeploy(deployment_name)
107
+ main_deployer.undeploy( deployment_name )
108
+ end
109
+
110
+ def process_deployments(check_complete=false)
111
+ main_deployer.process
112
+ if ( check_complete )
113
+ main_deployer.checkComplete
114
+ end
115
+ end
116
+
117
+ def deployment_unit(name)
118
+ main_deployer.getDeploymentUnit( name )
119
+ end
120
+
121
+ def kernel()
122
+ kernel_controller.kernel
123
+ end
124
+
125
+ def kernel_controller()
126
+ @server.kernel.controller
127
+ end
128
+
129
+ def main_deployer()
130
+ kernel_controller.getInstalledContext(MC_MAIN_DEPLOYER_NAME).target
131
+ end
132
+
133
+ def [](bean_name)
134
+ entry = kernel_controller.getInstalledContext( bean_name )
135
+ return nil if entry.nil?
136
+ entry.target
137
+ end
138
+
139
+ end
140
+ end
141
+ end