onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sclas...@apache.org
Subject svn commit: r1612657 [16/20] - in /onami/site/persist: ./ apidocs/reference/ apidocs/reference/org/apache/onami/persist/ xref-test/ xref-test/org/apache/onami/persist/ xref-test/org/apache/onami/persist/test/ xref-test/org/apache/onami/persist/test/mul...
Date Tue, 22 Jul 2014 19:54:48 GMT
Modified: onami/site/persist/xref/org/apache/onami/persist/PersistenceUnitModule.html
URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/PersistenceUnitModule.html?rev=1612657&r1=1612656&r2=1612657&view=diff
==============================================================================
--- onami/site/persist/xref/org/apache/onami/persist/PersistenceUnitModule.html (original)
+++ onami/site/persist/xref/org/apache/onami/persist/PersistenceUnitModule.html Tue Jul 22 19:54:46 2014
@@ -98,176 +98,198 @@
 <a class="jxr_linenumber" name="L90" href="#L90">90</a>              requestInjection( transactionInterceptor );
 <a class="jxr_linenumber" name="L91" href="#L91">91</a>          }
 <a class="jxr_linenumber" name="L92" href="#L92">92</a>  
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>          <em class="jxr_comment">// request injection into allPersistenceUnits - this adds the current persistence unit to the allPersistenceUnits.</em>
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>          <strong class="jxr_keyword">if</strong> ( allPersistenceUnits != <strong class="jxr_keyword">null</strong> )
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>          {
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>              requestInjection( allPersistenceUnits );
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>          }
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>      }
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>  
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment">     * exposes the following interfaces (optionally annotated if an annotation is defined in the configuration).</em>
-<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment">     * &lt;ul&gt;</em>
-<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment">     * &lt;li&gt;{@link PersistenceService}&lt;/li&gt;</em>
-<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_javadoccomment">     * &lt;li&gt;{@link EntityManagerProvider}&lt;/li&gt;</em>
-<a class="jxr_linenumber" name="L105" href="#L105">105</a> <em class="jxr_javadoccomment">     * &lt;li&gt;{@link UnitOfWork}&lt;/li&gt;</em>
-<a class="jxr_linenumber" name="L106" href="#L106">106</a> <em class="jxr_javadoccomment">     * &lt;/ul&gt;</em>
-<a class="jxr_linenumber" name="L107" href="#L107">107</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> exposePersistenceServiceAndEntityManagerProviderAndUnitOfWork()
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>     {
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>         <strong class="jxr_keyword">if</strong> ( config.isAnnotated() )
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>         {
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>             bindAndExposedAnnotated( PersistenceService.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>             bindAndExposedAnnotated( EntityManagerProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>             bindAndExposedAnnotated( UnitOfWork.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L115" href="#L115">115</a>         }
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>         {
-<a class="jxr_linenumber" name="L118" href="#L118">118</a>             expose( PersistenceService.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>             expose( EntityManagerProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>             expose( UnitOfWork.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>         }
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>     }
-<a class="jxr_linenumber" name="L123" href="#L123">123</a> 
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L125" href="#L125">125</a> <em class="jxr_javadoccomment">     * helper to expose a binding with annotation added.</em>
-<a class="jxr_linenumber" name="L126" href="#L126">126</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L127" href="#L127">127</a> <em class="jxr_javadoccomment">     * @param type the type to expose.</em>
-<a class="jxr_linenumber" name="L128" href="#L128">128</a> <em class="jxr_javadoccomment">     * @param &lt;T&gt;  the type to expose.</em>
-<a class="jxr_linenumber" name="L129" href="#L129">129</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>     <strong class="jxr_keyword">private</strong> &lt;T&gt; <strong class="jxr_keyword">void</strong> bindAndExposedAnnotated( Class&lt;T&gt; type )
-<a class="jxr_linenumber" name="L131" href="#L131">131</a>     {
-<a class="jxr_linenumber" name="L132" href="#L132">132</a>         bind( type ).annotatedWith( config.getAnnotation() ).to( Key.get( type ) );
-<a class="jxr_linenumber" name="L133" href="#L133">133</a>         expose( type ).annotatedWith( config.getAnnotation() );
-<a class="jxr_linenumber" name="L134" href="#L134">134</a>     }
-<a class="jxr_linenumber" name="L135" href="#L135">135</a> 
-<a class="jxr_linenumber" name="L136" href="#L136">136</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
-<a class="jxr_linenumber" name="L137" href="#L137">137</a>     {
-<a class="jxr_linenumber" name="L138" href="#L138">138</a>         <strong class="jxr_keyword">if</strong> ( config.isApplicationManagedPersistenceUnit() )
-<a class="jxr_linenumber" name="L139" href="#L139">139</a>         {
-<a class="jxr_linenumber" name="L140" href="#L140">140</a>             bindApplicationManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties();
-<a class="jxr_linenumber" name="L141" href="#L141">141</a>         }
-<a class="jxr_linenumber" name="L142" href="#L142">142</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L143" href="#L143">143</a>         {
-<a class="jxr_linenumber" name="L144" href="#L144">144</a>             bindContainerManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties();
-<a class="jxr_linenumber" name="L145" href="#L145">145</a>         }
-<a class="jxr_linenumber" name="L146" href="#L146">146</a>     }
-<a class="jxr_linenumber" name="L147" href="#L147">147</a> 
-<a class="jxr_linenumber" name="L148" href="#L148">148</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindApplicationManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
-<a class="jxr_linenumber" name="L149" href="#L149">149</a>     {
-<a class="jxr_linenumber" name="L150" href="#L150">150</a>         bind( PersistenceService.<strong class="jxr_keyword">class</strong> ).to( ApplicationManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L151" href="#L151">151</a>         bind( EntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> ).to( ApplicationManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L152" href="#L152">152</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L153" href="#L153">153</a>             Providers.&lt;Properties&gt;of( <strong class="jxr_keyword">null</strong> ) );
-<a class="jxr_linenumber" name="L154" href="#L154">154</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L155" href="#L155">155</a>             Providers.of( config.getProperties() ) );
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          allPersistenceUnits.add( getPersistenceKey(), getUnitOfWorkKey() );
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>      }
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>  
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>  <em class="jxr_javadoccomment">     * exposes the following interfaces (optionally annotated if an annotation is defined in the configuration).</em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>  <em class="jxr_javadoccomment">     * &lt;ul&gt;</em>
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>  <em class="jxr_javadoccomment">     * &lt;li&gt;{@link PersistenceService}&lt;/li&gt;</em>
+<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment">     * &lt;li&gt;{@link EntityManagerProvider}&lt;/li&gt;</em>
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment">     * &lt;li&gt;{@link UnitOfWork}&lt;/li&gt;</em>
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment">     * &lt;/ul&gt;</em>
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> exposePersistenceServiceAndEntityManagerProviderAndUnitOfWork()
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>     {
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         <strong class="jxr_keyword">if</strong> ( config.isAnnotated() )
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         {
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>             bindAndExposedAnnotated( PersistenceService.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>             bindAndExposedAnnotated( EntityManagerProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>             bindAndExposedAnnotated( UnitOfWork.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         }
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         {
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>             expose( PersistenceService.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>             expose( EntityManagerProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>             expose( UnitOfWork.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         }
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>     }
+<a class="jxr_linenumber" name="L119" href="#L119">119</a> 
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L121" href="#L121">121</a> <em class="jxr_javadoccomment">     * helper to expose a binding with annotation added.</em>
+<a class="jxr_linenumber" name="L122" href="#L122">122</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L123" href="#L123">123</a> <em class="jxr_javadoccomment">     * @param type the type to expose.</em>
+<a class="jxr_linenumber" name="L124" href="#L124">124</a> <em class="jxr_javadoccomment">     * @param &lt;T&gt;  the type to expose.</em>
+<a class="jxr_linenumber" name="L125" href="#L125">125</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">private</strong> &lt;T&gt; <strong class="jxr_keyword">void</strong> bindAndExposedAnnotated( Class&lt;T&gt; type )
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>     {
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         bind( type ).annotatedWith( config.getAnnotation() ).to( Key.get( type ) );
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         expose( type ).annotatedWith( config.getAnnotation() );
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>     }
+<a class="jxr_linenumber" name="L131" href="#L131">131</a> 
+<a class="jxr_linenumber" name="L132" href="#L132">132</a> 
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>     <strong class="jxr_keyword">private</strong> Key&lt;PersistenceService&gt; getPersistenceKey()
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>     {
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         <strong class="jxr_keyword">if</strong> ( config.isAnnotated() )
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         {
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>             <strong class="jxr_keyword">return</strong> Key.get( PersistenceService.<strong class="jxr_keyword">class</strong>, config.getAnnotation() );
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>         }
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>         {
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>             <strong class="jxr_keyword">return</strong> Key.get( PersistenceService.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>         }
+<a class="jxr_linenumber" name="L143" href="#L143">143</a>     }
+<a class="jxr_linenumber" name="L144" href="#L144">144</a> 
+<a class="jxr_linenumber" name="L145" href="#L145">145</a>     <strong class="jxr_keyword">private</strong> Key&lt;UnitOfWork&gt; getUnitOfWorkKey()
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>     {
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         <strong class="jxr_keyword">if</strong> ( config.isAnnotated() )
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>         {
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>             <strong class="jxr_keyword">return</strong> Key.get( UnitOfWork.<strong class="jxr_keyword">class</strong>, config.getAnnotation() );
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>         }
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>         {
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>             <strong class="jxr_keyword">return</strong> Key.get( UnitOfWork.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>         }
+<a class="jxr_linenumber" name="L155" href="#L155">155</a>     }
 <a class="jxr_linenumber" name="L156" href="#L156">156</a> 
-<a class="jxr_linenumber" name="L157" href="#L157">157</a>         <em class="jxr_comment">// required in ApplicationManagedEntityManagerFactoryProvider</em>
-<a class="jxr_linenumber" name="L158" href="#L158">158</a>         bind( EntityManagerFactoryFactory.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L159" href="#L159">159</a>         <em class="jxr_comment">// required in EntityManagerFactoryFactory</em>
-<a class="jxr_linenumber" name="L160" href="#L160">160</a>         bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getPuName() );
-<a class="jxr_linenumber" name="L161" href="#L161">161</a>     }
-<a class="jxr_linenumber" name="L162" href="#L162">162</a> 
-<a class="jxr_linenumber" name="L163" href="#L163">163</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindContainerManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
-<a class="jxr_linenumber" name="L164" href="#L164">164</a>     {
-<a class="jxr_linenumber" name="L165" href="#L165">165</a>         bind( PersistenceService.<strong class="jxr_keyword">class</strong> ).to( ContainerManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L166" href="#L166">166</a>         bind( EntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> ).to( ContainerManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L167" href="#L167">167</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L168" href="#L168">168</a>             Providers.of( config.getProperties() ) );
-<a class="jxr_linenumber" name="L169" href="#L169">169</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L170" href="#L170">170</a>             Providers.&lt;Properties&gt;of( <strong class="jxr_keyword">null</strong> ) );
-<a class="jxr_linenumber" name="L171" href="#L171">171</a> 
-<a class="jxr_linenumber" name="L172" href="#L172">172</a>         <em class="jxr_comment">// required in ContainerManagedEntityManagerFactoryProvider</em>
-<a class="jxr_linenumber" name="L173" href="#L173">173</a>         bindEntityManagerFactorySource();
-<a class="jxr_linenumber" name="L174" href="#L174">174</a>     }
-<a class="jxr_linenumber" name="L175" href="#L175">175</a> 
-<a class="jxr_linenumber" name="L176" href="#L176">176</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindEntityManagerFactorySource()
-<a class="jxr_linenumber" name="L177" href="#L177">177</a>     {
-<a class="jxr_linenumber" name="L178" href="#L178">178</a>         <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByJndiLookup() )
-<a class="jxr_linenumber" name="L179" href="#L179">179</a>         {
-<a class="jxr_linenumber" name="L180" href="#L180">180</a>             bind( EntityManagerFactorySource.<strong class="jxr_keyword">class</strong> ).to( EntityManagerFactorySourceByJndiLookup.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L181" href="#L181">181</a> 
-<a class="jxr_linenumber" name="L182" href="#L182">182</a>             <em class="jxr_comment">// required in EntityManagerFactorySourceByJndiLookup</em>
-<a class="jxr_linenumber" name="L183" href="#L183">183</a>             bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getEmfJndiName() );
-<a class="jxr_linenumber" name="L184" href="#L184">184</a>         }
-<a class="jxr_linenumber" name="L185" href="#L185">185</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L186" href="#L186">186</a>         {
-<a class="jxr_linenumber" name="L187" href="#L187">187</a>             bind( EntityManagerFactorySource.<strong class="jxr_keyword">class</strong> ).to( EntityManagerFactorySourceViaProvider.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L188" href="#L188">188</a> 
-<a class="jxr_linenumber" name="L189" href="#L189">189</a>             <em class="jxr_comment">// required in EntityManagerFactorySourceViaProvider</em>
-<a class="jxr_linenumber" name="L190" href="#L190">190</a>             bindInternalEntityManagerFactoryProvider();
-<a class="jxr_linenumber" name="L191" href="#L191">191</a>         }
-<a class="jxr_linenumber" name="L192" href="#L192">192</a>     }
-<a class="jxr_linenumber" name="L193" href="#L193">193</a> 
-<a class="jxr_linenumber" name="L194" href="#L194">194</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindInternalEntityManagerFactoryProvider()
-<a class="jxr_linenumber" name="L195" href="#L195">195</a>     {
-<a class="jxr_linenumber" name="L196" href="#L196">196</a>         <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByInstance() )
-<a class="jxr_linenumber" name="L197" href="#L197">197</a>         {
-<a class="jxr_linenumber" name="L198" href="#L198">198</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getEmf() );
-<a class="jxr_linenumber" name="L199" href="#L199">199</a>         }
-<a class="jxr_linenumber" name="L200" href="#L200">200</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByProvider() )
-<a class="jxr_linenumber" name="L201" href="#L201">201</a>         {
-<a class="jxr_linenumber" name="L202" href="#L202">202</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L203" href="#L203">203</a>                 config.getEmfProvider() );
-<a class="jxr_linenumber" name="L204" href="#L204">204</a>         }
-<a class="jxr_linenumber" name="L205" href="#L205">205</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByProviderKey() )
-<a class="jxr_linenumber" name="L206" href="#L206">206</a>         {
-<a class="jxr_linenumber" name="L207" href="#L207">207</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
-<a class="jxr_linenumber" name="L208" href="#L208">208</a>                 config.getEmfProviderKey() );
-<a class="jxr_linenumber" name="L209" href="#L209">209</a>         }
-<a class="jxr_linenumber" name="L210" href="#L210">210</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L211" href="#L211">211</a>         {
-<a class="jxr_linenumber" name="L212" href="#L212">212</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( <span class="jxr_string">"EntityManager is improperly configured"</span> );
-<a class="jxr_linenumber" name="L213" href="#L213">213</a>         }
-<a class="jxr_linenumber" name="L214" href="#L214">214</a>     }
-<a class="jxr_linenumber" name="L215" href="#L215">215</a> 
-<a class="jxr_linenumber" name="L216" href="#L216">216</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindTransactionFacadeFactory()
-<a class="jxr_linenumber" name="L217" href="#L217">217</a>     {
-<a class="jxr_linenumber" name="L218" href="#L218">218</a>         <strong class="jxr_keyword">if</strong> ( config.isJta() )
-<a class="jxr_linenumber" name="L219" href="#L219">219</a>         {
-<a class="jxr_linenumber" name="L220" href="#L220">220</a>             bindJtaTransactionFacadeFactory();
-<a class="jxr_linenumber" name="L221" href="#L221">221</a>         }
-<a class="jxr_linenumber" name="L222" href="#L222">222</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L223" href="#L223">223</a>         {
-<a class="jxr_linenumber" name="L224" href="#L224">224</a>             bind( TransactionFacadeFactory.<strong class="jxr_keyword">class</strong> ).to( ResourceLocalTransactionFacadeFactory.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>     {
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>         <strong class="jxr_keyword">if</strong> ( config.isApplicationManagedPersistenceUnit() )
+<a class="jxr_linenumber" name="L160" href="#L160">160</a>         {
+<a class="jxr_linenumber" name="L161" href="#L161">161</a>             bindApplicationManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties();
+<a class="jxr_linenumber" name="L162" href="#L162">162</a>         }
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         {
+<a class="jxr_linenumber" name="L165" href="#L165">165</a>             bindContainerManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties();
+<a class="jxr_linenumber" name="L166" href="#L166">166</a>         }
+<a class="jxr_linenumber" name="L167" href="#L167">167</a>     }
+<a class="jxr_linenumber" name="L168" href="#L168">168</a> 
+<a class="jxr_linenumber" name="L169" href="#L169">169</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindApplicationManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
+<a class="jxr_linenumber" name="L170" href="#L170">170</a>     {
+<a class="jxr_linenumber" name="L171" href="#L171">171</a>         bind( PersistenceService.<strong class="jxr_keyword">class</strong> ).to( ApplicationManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L172" href="#L172">172</a>         bind( EntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> ).to( ApplicationManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L173" href="#L173">173</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>             Providers.&lt;Properties&gt;of( <strong class="jxr_keyword">null</strong> ) );
+<a class="jxr_linenumber" name="L175" href="#L175">175</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L176" href="#L176">176</a>             Providers.of( config.getProperties() ) );
+<a class="jxr_linenumber" name="L177" href="#L177">177</a> 
+<a class="jxr_linenumber" name="L178" href="#L178">178</a>         <em class="jxr_comment">// required in ApplicationManagedEntityManagerFactoryProvider</em>
+<a class="jxr_linenumber" name="L179" href="#L179">179</a>         bind( EntityManagerFactoryFactory.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L180" href="#L180">180</a>         <em class="jxr_comment">// required in EntityManagerFactoryFactory</em>
+<a class="jxr_linenumber" name="L181" href="#L181">181</a>         bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getPuName() );
+<a class="jxr_linenumber" name="L182" href="#L182">182</a>     }
+<a class="jxr_linenumber" name="L183" href="#L183">183</a> 
+<a class="jxr_linenumber" name="L184" href="#L184">184</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindContainerManagedPersistenceServiceAndEntityManagerFactoryProviderAndProperties()
+<a class="jxr_linenumber" name="L185" href="#L185">185</a>     {
+<a class="jxr_linenumber" name="L186" href="#L186">186</a>         bind( PersistenceService.<strong class="jxr_keyword">class</strong> ).to( ContainerManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L187" href="#L187">187</a>         bind( EntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> ).to( ContainerManagedEntityManagerFactoryProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L188" href="#L188">188</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L189" href="#L189">189</a>             Providers.of( config.getProperties() ) );
+<a class="jxr_linenumber" name="L190" href="#L190">190</a>         bind( Properties.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForApplicationManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L191" href="#L191">191</a>             Providers.&lt;Properties&gt;of( <strong class="jxr_keyword">null</strong> ) );
+<a class="jxr_linenumber" name="L192" href="#L192">192</a> 
+<a class="jxr_linenumber" name="L193" href="#L193">193</a>         <em class="jxr_comment">// required in ContainerManagedEntityManagerFactoryProvider</em>
+<a class="jxr_linenumber" name="L194" href="#L194">194</a>         bindEntityManagerFactorySource();
+<a class="jxr_linenumber" name="L195" href="#L195">195</a>     }
+<a class="jxr_linenumber" name="L196" href="#L196">196</a> 
+<a class="jxr_linenumber" name="L197" href="#L197">197</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindEntityManagerFactorySource()
+<a class="jxr_linenumber" name="L198" href="#L198">198</a>     {
+<a class="jxr_linenumber" name="L199" href="#L199">199</a>         <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByJndiLookup() )
+<a class="jxr_linenumber" name="L200" href="#L200">200</a>         {
+<a class="jxr_linenumber" name="L201" href="#L201">201</a>             bind( EntityManagerFactorySource.<strong class="jxr_keyword">class</strong> ).to( EntityManagerFactorySourceByJndiLookup.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L202" href="#L202">202</a> 
+<a class="jxr_linenumber" name="L203" href="#L203">203</a>             <em class="jxr_comment">// required in EntityManagerFactorySourceByJndiLookup</em>
+<a class="jxr_linenumber" name="L204" href="#L204">204</a>             bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getEmfJndiName() );
+<a class="jxr_linenumber" name="L205" href="#L205">205</a>         }
+<a class="jxr_linenumber" name="L206" href="#L206">206</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L207" href="#L207">207</a>         {
+<a class="jxr_linenumber" name="L208" href="#L208">208</a>             bind( EntityManagerFactorySource.<strong class="jxr_keyword">class</strong> ).to( EntityManagerFactorySourceViaProvider.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L209" href="#L209">209</a> 
+<a class="jxr_linenumber" name="L210" href="#L210">210</a>             <em class="jxr_comment">// required in EntityManagerFactorySourceViaProvider</em>
+<a class="jxr_linenumber" name="L211" href="#L211">211</a>             bindInternalEntityManagerFactoryProvider();
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>         }
+<a class="jxr_linenumber" name="L213" href="#L213">213</a>     }
+<a class="jxr_linenumber" name="L214" href="#L214">214</a> 
+<a class="jxr_linenumber" name="L215" href="#L215">215</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindInternalEntityManagerFactoryProvider()
+<a class="jxr_linenumber" name="L216" href="#L216">216</a>     {
+<a class="jxr_linenumber" name="L217" href="#L217">217</a>         <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByInstance() )
+<a class="jxr_linenumber" name="L218" href="#L218">218</a>         {
+<a class="jxr_linenumber" name="L219" href="#L219">219</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toInstance( config.getEmf() );
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>         }
+<a class="jxr_linenumber" name="L221" href="#L221">221</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByProvider() )
+<a class="jxr_linenumber" name="L222" href="#L222">222</a>         {
+<a class="jxr_linenumber" name="L223" href="#L223">223</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L224" href="#L224">224</a>                 Providers.guicify( config.getEmfProvider() ) );
 <a class="jxr_linenumber" name="L225" href="#L225">225</a>         }
-<a class="jxr_linenumber" name="L226" href="#L226">226</a>     }
-<a class="jxr_linenumber" name="L227" href="#L227">227</a> 
-<a class="jxr_linenumber" name="L228" href="#L228">228</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindJtaTransactionFacadeFactory()
-<a class="jxr_linenumber" name="L229" href="#L229">229</a>     {
-<a class="jxr_linenumber" name="L230" href="#L230">230</a>         bind( TransactionFacadeFactory.<strong class="jxr_keyword">class</strong> ).to( JtaTransactionFacadeFactory.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L231" href="#L231">231</a> 
-<a class="jxr_linenumber" name="L232" href="#L232">232</a>         <em class="jxr_comment">// required in JtaTransactionFacadeFactory</em>
-<a class="jxr_linenumber" name="L233" href="#L233">233</a>         binInternalUserTransactionProvider();
-<a class="jxr_linenumber" name="L234" href="#L234">234</a>     }
-<a class="jxr_linenumber" name="L235" href="#L235">235</a> 
-<a class="jxr_linenumber" name="L236" href="#L236">236</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> binInternalUserTransactionProvider()
-<a class="jxr_linenumber" name="L237" href="#L237">237</a>     {
-<a class="jxr_linenumber" name="L238" href="#L238">238</a>         <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByInstance() )
-<a class="jxr_linenumber" name="L239" href="#L239">239</a>         {
-<a class="jxr_linenumber" name="L240" href="#L240">240</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toInstance( config.getUserTransaction() );
-<a class="jxr_linenumber" name="L241" href="#L241">241</a>         }
-<a class="jxr_linenumber" name="L242" href="#L242">242</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByJndiLookup() )
-<a class="jxr_linenumber" name="L243" href="#L243">243</a>         {
-<a class="jxr_linenumber" name="L244" href="#L244">244</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( UserTransactionProviderByJndiLookup.<strong class="jxr_keyword">class</strong> );
-<a class="jxr_linenumber" name="L245" href="#L245">245</a> 
-<a class="jxr_linenumber" name="L246" href="#L246">246</a>             <em class="jxr_comment">// required in UserTransactionProviderByJndiLookup</em>
-<a class="jxr_linenumber" name="L247" href="#L247">247</a>             bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( UserTransactionJndiName.<strong class="jxr_keyword">class</strong> ).toInstance( config.getUtJndiName() );
-<a class="jxr_linenumber" name="L248" href="#L248">248</a>         }
-<a class="jxr_linenumber" name="L249" href="#L249">249</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByProvider() )
-<a class="jxr_linenumber" name="L250" href="#L250">250</a>         {
-<a class="jxr_linenumber" name="L251" href="#L251">251</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( config.getUtProvider() );
-<a class="jxr_linenumber" name="L252" href="#L252">252</a>         }
-<a class="jxr_linenumber" name="L253" href="#L253">253</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByProviderKey() )
-<a class="jxr_linenumber" name="L254" href="#L254">254</a>         {
-<a class="jxr_linenumber" name="L255" href="#L255">255</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( config.getUtProviderKey() );
-<a class="jxr_linenumber" name="L256" href="#L256">256</a>         }
-<a class="jxr_linenumber" name="L257" href="#L257">257</a>         <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="L258" href="#L258">258</a>         {
-<a class="jxr_linenumber" name="L259" href="#L259">259</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( <span class="jxr_string">"UserTransaction is improperly configured"</span> );
-<a class="jxr_linenumber" name="L260" href="#L260">260</a>         }
-<a class="jxr_linenumber" name="L261" href="#L261">261</a>     }
-<a class="jxr_linenumber" name="L262" href="#L262">262</a> }
+<a class="jxr_linenumber" name="L226" href="#L226">226</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isEmfProvidedByProviderKey() )
+<a class="jxr_linenumber" name="L227" href="#L227">227</a>         {
+<a class="jxr_linenumber" name="L228" href="#L228">228</a>             bind( EntityManagerFactory.<strong class="jxr_keyword">class</strong> ).annotatedWith( ForContainerManaged.<strong class="jxr_keyword">class</strong> ).toProvider(
+<a class="jxr_linenumber" name="L229" href="#L229">229</a>                 config.getEmfProviderKey() );
+<a class="jxr_linenumber" name="L230" href="#L230">230</a>         }
+<a class="jxr_linenumber" name="L231" href="#L231">231</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L232" href="#L232">232</a>         {
+<a class="jxr_linenumber" name="L233" href="#L233">233</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( <span class="jxr_string">"EntityManager is improperly configured"</span> );
+<a class="jxr_linenumber" name="L234" href="#L234">234</a>         }
+<a class="jxr_linenumber" name="L235" href="#L235">235</a>     }
+<a class="jxr_linenumber" name="L236" href="#L236">236</a> 
+<a class="jxr_linenumber" name="L237" href="#L237">237</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindTransactionFacadeFactory()
+<a class="jxr_linenumber" name="L238" href="#L238">238</a>     {
+<a class="jxr_linenumber" name="L239" href="#L239">239</a>         <strong class="jxr_keyword">if</strong> ( config.isJta() )
+<a class="jxr_linenumber" name="L240" href="#L240">240</a>         {
+<a class="jxr_linenumber" name="L241" href="#L241">241</a>             bindJtaTransactionFacadeFactory();
+<a class="jxr_linenumber" name="L242" href="#L242">242</a>         }
+<a class="jxr_linenumber" name="L243" href="#L243">243</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L244" href="#L244">244</a>         {
+<a class="jxr_linenumber" name="L245" href="#L245">245</a>             bind( TransactionFacadeFactory.<strong class="jxr_keyword">class</strong> ).to( ResourceLocalTransactionFacadeFactory.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L246" href="#L246">246</a>         }
+<a class="jxr_linenumber" name="L247" href="#L247">247</a>     }
+<a class="jxr_linenumber" name="L248" href="#L248">248</a> 
+<a class="jxr_linenumber" name="L249" href="#L249">249</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> bindJtaTransactionFacadeFactory()
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>     {
+<a class="jxr_linenumber" name="L251" href="#L251">251</a>         bind( TransactionFacadeFactory.<strong class="jxr_keyword">class</strong> ).to( JtaTransactionFacadeFactory.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L252" href="#L252">252</a> 
+<a class="jxr_linenumber" name="L253" href="#L253">253</a>         <em class="jxr_comment">// required in JtaTransactionFacadeFactory</em>
+<a class="jxr_linenumber" name="L254" href="#L254">254</a>         binInternalUserTransactionProvider();
+<a class="jxr_linenumber" name="L255" href="#L255">255</a>     }
+<a class="jxr_linenumber" name="L256" href="#L256">256</a> 
+<a class="jxr_linenumber" name="L257" href="#L257">257</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> binInternalUserTransactionProvider()
+<a class="jxr_linenumber" name="L258" href="#L258">258</a>     {
+<a class="jxr_linenumber" name="L259" href="#L259">259</a>         <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByInstance() )
+<a class="jxr_linenumber" name="L260" href="#L260">260</a>         {
+<a class="jxr_linenumber" name="L261" href="#L261">261</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toInstance( config.getUserTransaction() );
+<a class="jxr_linenumber" name="L262" href="#L262">262</a>         }
+<a class="jxr_linenumber" name="L263" href="#L263">263</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByJndiLookup() )
+<a class="jxr_linenumber" name="L264" href="#L264">264</a>         {
+<a class="jxr_linenumber" name="L265" href="#L265">265</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( UserTransactionProviderByJndiLookup.<strong class="jxr_keyword">class</strong> );
+<a class="jxr_linenumber" name="L266" href="#L266">266</a> 
+<a class="jxr_linenumber" name="L267" href="#L267">267</a>             <em class="jxr_comment">// required in UserTransactionProviderByJndiLookup</em>
+<a class="jxr_linenumber" name="L268" href="#L268">268</a>             bind( String.<strong class="jxr_keyword">class</strong> ).annotatedWith( UserTransactionJndiName.<strong class="jxr_keyword">class</strong> ).toInstance( config.getUtJndiName() );
+<a class="jxr_linenumber" name="L269" href="#L269">269</a>         }
+<a class="jxr_linenumber" name="L270" href="#L270">270</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByProvider() )
+<a class="jxr_linenumber" name="L271" href="#L271">271</a>         {
+<a class="jxr_linenumber" name="L272" href="#L272">272</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( Providers.guicify( config.getUtProvider() ) );
+<a class="jxr_linenumber" name="L273" href="#L273">273</a>         }
+<a class="jxr_linenumber" name="L274" href="#L274">274</a>         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( config.isUserTransactionProvidedByProviderKey() )
+<a class="jxr_linenumber" name="L275" href="#L275">275</a>         {
+<a class="jxr_linenumber" name="L276" href="#L276">276</a>             bind( UserTransaction.<strong class="jxr_keyword">class</strong> ).toProvider( config.getUtProviderKey() );
+<a class="jxr_linenumber" name="L277" href="#L277">277</a>         }
+<a class="jxr_linenumber" name="L278" href="#L278">278</a>         <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="L279" href="#L279">279</a>         {
+<a class="jxr_linenumber" name="L280" href="#L280">280</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( <span class="jxr_string">"UserTransaction is improperly configured"</span> );
+<a class="jxr_linenumber" name="L281" href="#L281">281</a>         }
+<a class="jxr_linenumber" name="L282" href="#L282">282</a>     }
+<a class="jxr_linenumber" name="L283" href="#L283">283</a> 
+<a class="jxr_linenumber" name="L284" href="#L284">284</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2013&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>



Mime
View raw message