View Javadoc

1   // SECTION-START[License Header]
2   // <editor-fold defaultstate="collapsed" desc=" Generated License ">
3   /*
4    *   Copyright (c) 2010 The JOMC Project
5    *   Copyright (c) 2005 Christian Schulte <schulte2005@users.sourceforge.net>
6    *   All rights reserved.
7    *
8    *   Redistribution and use in source and binary forms, with or without
9    *   modification, are permitted provided that the following conditions
10   *   are met:
11   *
12   *     o Redistributions of source code must retain the above copyright
13   *       notice, this list of conditions and the following disclaimer.
14   *
15   *     o Redistributions in binary form must reproduce the above copyright
16   *       notice, this list of conditions and the following disclaimer in
17   *       the documentation and/or other materials provided with the
18   *       distribution.
19   *
20   *   THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
21   *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22   *   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23   *   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
24   *   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25   *   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26   *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27   *   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28   *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29   *   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30   *   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31   *
32   *   $Id: StandaloneEnvironment.java 2242 2010-06-29 07:54:56Z schulte2005 $
33   *
34   */
35  // </editor-fold>
36  // SECTION-END
37  package org.jomc.standalone.ri;
38  
39  import java.io.File;
40  import java.net.MalformedURLException;
41  import java.net.URL;
42  import java.util.Properties;
43  
44  // SECTION-START[Documentation]
45  // <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
46  /**
47   * Standalone environment.
48   * <p><b>Properties</b><ul>
49   * <li>"{@link #getDefaultDataSourceClassName defaultDataSourceClassName}"
50   * <blockquote>Property of type {@code java.lang.String}.
51   * <p>The default class name of the {@code DataSource} backing the standalone environment.</p>
52   * </blockquote></li>
53   * <li>"{@link #getDefaultDataSourceContextFactoryName defaultDataSourceContextFactoryName}"
54   * <blockquote>Property of type {@code java.lang.String}.
55   * <p>The default class name of the {@code InitialContextFactory} providing the standalone {@code DataSource}.</p>
56   * </blockquote></li>
57   * <li>"{@link #getDefaultDataSourceJndiName defaultDataSourceJndiName}"
58   * <blockquote>Property of type {@code java.lang.String}.
59   * <p>The default JNDI name of the data source backing the standalone JPA implementation.</p>
60   * </blockquote></li>
61   * <li>"{@link #getDefaultEntityManagerFactoryJndiName defaultEntityManagerFactoryJndiName}"
62   * <blockquote>Property of type {@code java.lang.String}.
63   * <p>The default JNDI name the standalone {@code EntityManagerFactory} is bound to.</p>
64   * </blockquote></li>
65   * <li>"{@link #getDefaultEntityManagerJndiName defaultEntityManagerJndiName}"
66   * <blockquote>Property of type {@code java.lang.String}.
67   * <p>The default JNDI name the standalone {@code EntityManager} is bound to.</p>
68   * </blockquote></li>
69   * <li>"{@link #getDefaultJpaContextFactoryName defaultJpaContextFactoryName}"
70   * <blockquote>Property of type {@code java.lang.String}.
71   * <p>The default class name of the {@code InitialContextFactory} providing the JPA implementation backing the standalone environment.</p>
72   * </blockquote></li>
73   * <li>"{@link #getDefaultJtaContextFactoryName defaultJtaContextFactoryName}"
74   * <blockquote>Property of type {@code java.lang.String}.
75   * <p>The default class name of the of the {@code InitialContextFactory} providing the JTA implementation backing the standalone environment.</p>
76   * </blockquote></li>
77   * <li>"{@link #getDefaultJtaDataSourceJndiName defaultJtaDataSourceJndiName}"
78   * <blockquote>Property of type {@code java.lang.String}.
79   * <p>The default JNDI name of the data source backing the standalone JTA implementation.</p>
80   * </blockquote></li>
81   * <li>"{@link #getDefaultTransactionManagerJndiName defaultTransactionManagerJndiName}"
82   * <blockquote>Property of type {@code java.lang.String}.
83   * <p>The default JNDI name the standalone {@code TransactionManager} is bound to.</p>
84   * </blockquote></li>
85   * <li>"{@link #getDefaultTransactionSynchronizationRegistryJndiName defaultTransactionSynchronizationRegistryJndiName}"
86   * <blockquote>Property of type {@code java.lang.String}.
87   * <p>The default JNDI name the standalone {@code TransactionSynchronizationRegistry} is bound to.</p>
88   * </blockquote></li>
89   * <li>"{@link #getDefaultUserTransactionJndiName defaultUserTransactionJndiName}"
90   * <blockquote>Property of type {@code java.lang.String}.
91   * <p>The default JNDI name the standalone {@code UserTransaction} is bound to.</p>
92   * </blockquote></li>
93   * </ul></p>
94   *
95   * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0
96   * @version $Id: StandaloneEnvironment.java 2242 2010-06-29 07:54:56Z schulte2005 $
97   */
98  // </editor-fold>
99  // SECTION-END
100 // SECTION-START[Annotations]
101 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
102 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
103 // </editor-fold>
104 // SECTION-END
105 public class StandaloneEnvironment
106 {
107     // SECTION-START[StandaloneEnvironment]
108 
109     /**
110      * Constant for the name of the system property holding the JNDI name the standalone {@code EntityManager}
111      * implementation is bound to.
112      */
113     public static final String ENTITY_MANAGER_JNDI_NAME = "jomc.standalone.entityManagerJndiName";
114 
115     /**
116      * Constant for the name of the system property holding the JNDI name the standalone {@code EntityManagerFactory}
117      * implementation is bound to.
118      */
119     public static final String ENTITY_MANAGER_FACTORY_JNDI_NAME = "jomc.standalone.entityManagerFactoryJndiName";
120 
121     /**
122      * Constant for the name of the system property holding the JNDI name the standalone {@code TransactionManager}
123      * implementation is bound to.
124      */
125     public static final String TRANSACTION_MANAGER_JNDI_NAME = "jomc.standalone.transactionManagerJndiName";
126 
127     /**
128      * Constant for the name of the system property holding the JNDI name the standalone {@code UserTransaction}
129      * implementation is bound to.
130      */
131     public static final String USER_TRANSACTION_JNDI_NAME = "jomc.standalone.userTransactionJndiName";
132 
133     /**
134      * Constant for the name of the system property holding the JNDI name the standalone
135      * {@code TransactionSynchronizationRegistry} implementation is bound to.
136      */
137     public static final String TRANSACTION_SYNCHRONIZATION_REGISTRY_JNDI_NAME =
138         "jomc.standalone.transactionSynchronizationRegistryJndiName";
139 
140     /**
141      * Constant for the name of the system property holding the class name of the {@code InitialContextFactory}
142      * providing the JPA implementation backing the standalone environment.
143      */
144     public static final String JPA_CONTEXT_FACTORY_NAME = "jomc.standalone.jpaContextFactoryName";
145 
146     /**
147      * Constant for the name of the system property holding the root URL of the persistence unit backing the
148      * standalone environment.
149      */
150     public static final String JPA_ROOT_URL = "jomc.standalone.jpaRootUrl";
151 
152     /**
153      * Constant for the name of the system property holding the class name of the {@code InitialContextFactory}
154      * providing the JTA implementation backing the standalone environment.
155      */
156     public static final String JTA_CONTEXT_FACTORY_NAME = "jomc.standalone.jtaContextFactoryName";
157 
158     /**
159      * Constant for the name of the system property holding the JNDI name of the JTA aware {@code DataSource} backing
160      * the standalone environment.
161      */
162     public static final String JTA_DATA_SOURCE_JNDI_NAME = "jomc.standalone.jtaDataSourceJndiName";
163 
164     /** Constant for the prefix of data source properties of the standalone environment. */
165     public static final String DATA_SOURCE_PREFIX = "jomc.standalone.dataSource.";
166 
167     /**
168      * Constant for the name of the system property holding the class name of the {@code InitialContextFactory}
169      * providing the {@code DataSource} implementation backing the standalone environment.
170      */
171     public static final String DATA_SOURCE_CONTEXT_FACTORY_NAME = DATA_SOURCE_PREFIX + "contextFactoryName";
172 
173     /**
174      * Constant for the name of the system property holding the JNDI name of the {@code DataSource} backing the
175      * standalone environment.
176      */
177     public static final String DATA_SOURCE_JNDI_NAME = DATA_SOURCE_PREFIX + "jndiName";
178 
179     /**
180      * Constant for the name of the system property holding the class name of the {@code DataSource} backing the
181      * standalone environment.
182      */
183     public static final String DATA_SOURCE_CLASS_NAME = DATA_SOURCE_PREFIX + "className";
184 
185     /**
186      * Constant for the name of the system property holding the user of the {@code DataSource} backing the
187      * standalone environment.
188      */
189     public static final String DATA_SOURCE_USER = DATA_SOURCE_PREFIX + "user";
190 
191     /**
192      * Constant for the name of the system property holding the password of the {@code DataSource} backing the
193      * standalone environment.
194      */
195     public static final String DATA_SOURCE_PASSWORD = DATA_SOURCE_PREFIX + "password";
196 
197     /**
198      * Gets the JNDI name the standalone {@code EntityManager} implementation is bound to.
199      *
200      * @return The the JNDI name the standalone {@code EntityManager} implementation is bound to.
201      */
202     public String getEntityManagerJndiName()
203     {
204         return System.getProperty( ENTITY_MANAGER_JNDI_NAME, this.getDefaultEntityManagerJndiName() );
205     }
206 
207     /**
208      * Gets the JNDI name the standalone {@code EntityManagerFactory} implementation is bound to.
209      *
210      * @return The JNDI name the standalone {@code EntityManagerFactory} implementation is bound to.
211      */
212     public String getEntityManagerFactoryJndiName()
213     {
214         return System.getProperty( ENTITY_MANAGER_FACTORY_JNDI_NAME, this.getDefaultEntityManagerFactoryJndiName() );
215     }
216 
217     /**
218      * Gets the JNDI name the standalone {@code TransactionManager} implementation is bound to.
219      *
220      * @return The JNDI name the standalone {@code TransactionManager} implementation is bound to.
221      */
222     public String getTransactionManagerJndiName()
223     {
224         return System.getProperty( TRANSACTION_MANAGER_JNDI_NAME, this.getDefaultTransactionManagerJndiName() );
225     }
226 
227     /**
228      * Gets the JNDI name the standalone {@code UserTransaction} implementation is bound to.
229      *
230      * @return The JNDI name the standalone {@code UserTransaction} implementation is bound to.
231      */
232     public String getUserTransactionJndiName()
233     {
234         return System.getProperty( USER_TRANSACTION_JNDI_NAME, this.getDefaultUserTransactionJndiName() );
235     }
236 
237     /**
238      * Gets the JNDI name the standalone {@code TransactionSynchronizationRegistry} is bound to.
239      *
240      * @return The JNDI name the standalone {@code TransactionSynchronizationRegistry} is bound to.
241      */
242     public String getTransactionSynchronizationRegistryJndiName()
243     {
244         return System.getProperty( TRANSACTION_SYNCHRONIZATION_REGISTRY_JNDI_NAME,
245                                    this.getDefaultTransactionSynchronizationRegistryJndiName() );
246 
247     }
248 
249     /**
250      * Gets the class name of the {@code InitialContextFactory} providing the JPA implementation backing the standalone
251      * environment.
252      *
253      * @return The class name of the {@code InitialContextFactory} providing the JPA implementation backing the
254      * standalone environment or {@code null}.
255      */
256     public String getJpaContextFactoryName()
257     {
258         return System.getProperty( JPA_CONTEXT_FACTORY_NAME, this.getDefaultJpaContextFactoryName() );
259     }
260 
261     /**
262      * Gets the root URL of the persistence unit backing the standalone environment.
263      *
264      * @return The root URL of the persistence unit backing the standalone environment.
265      */
266     public URL getJpaRootUrl()
267     {
268         try
269         {
270             final String sysRootUrl = System.getProperty( JPA_ROOT_URL );
271 
272             if ( sysRootUrl != null )
273             {
274                 final File f = new File( sysRootUrl );
275                 if ( !f.exists() )
276                 {
277                     f.mkdirs();
278                 }
279 
280                 return f.toURI().toURL();
281             }
282             else
283             {
284                 final File defaultRootUrl = new File( System.getProperty( "java.io.tmpdir" ), "jomc-standalone" );
285 
286                 if ( !defaultRootUrl.exists() )
287                 {
288                     defaultRootUrl.mkdirs();
289                 }
290 
291                 return defaultRootUrl.toURI().toURL();
292             }
293         }
294         catch ( final MalformedURLException e )
295         {
296             throw new AssertionError( e );
297         }
298     }
299 
300     /**
301      * Gets the class name of the {@code InitialContextFactory} providing the JTA implementation backing the standalone
302      * environment.
303      *
304      * @return The class name of the {@code InitialContextFactory} providing the JTA implementation backing the
305      * standalone environment or {@code null}.
306      */
307     public String getJtaContextFactoryName()
308     {
309         return System.getProperty( JTA_CONTEXT_FACTORY_NAME, this.getDefaultJtaContextFactoryName() );
310     }
311 
312     /**
313      * Gets the JNDI name of the JTA aware {@code DataSource} backing the standalone environment.
314      *
315      * @return The JNDI name of the JTA aware {@code DataSource} backing the standalone environment or {@code null}.
316      */
317     public String getJtaDataSourceJndiName()
318     {
319         return System.getProperty( JTA_DATA_SOURCE_JNDI_NAME, this.getDefaultJtaDataSourceJndiName() );
320     }
321 
322     /**
323      * Gets the class name of the {@code InitialContextFactory} providing the {@code DataSource} backing the standalone
324      * environment.
325      *
326      * @return The class name of the {@code InitialContextFactory} providing the {@code DataSource} backing the
327      * standalone environment.
328      */
329     public String getDataSourceContextFactoryName()
330     {
331         return System.getProperty( DATA_SOURCE_CONTEXT_FACTORY_NAME, this.getDefaultDataSourceContextFactoryName() );
332     }
333 
334     /**
335      * Gets the class name of the {@code DataSource} backing the standalone environment.
336      *
337      * @return The class name of the {@code DataSource} backing the standalone environment or {@code null}.
338      */
339     public String getDataSourceClassName()
340     {
341         return System.getProperty( DATA_SOURCE_CLASS_NAME, this.getDefaultDataSourceClassName() );
342     }
343 
344     /**
345      * Gets the JNDI name of the {@code DataSource} backing the standalone environment.
346      *
347      * @return The JNDI name of the {@code DataSource} backing the standalone environment.
348      */
349     public String getDataSourceJndiName()
350     {
351         return System.getProperty( DATA_SOURCE_JNDI_NAME, this.getDefaultDataSourceJndiName() );
352     }
353 
354     /**
355      * Gets the user of the {@code DataSource} backing the standalone environment.
356      *
357      * @return The user of the {@code DataSource} backing the standalone environment.
358      */
359     public String getDataSourceUser()
360     {
361         return System.getProperty( DATA_SOURCE_USER );
362     }
363 
364     /**
365      * Gets the password of the {@code DataSource} backing the standalone environment.
366      *
367      * @return The password of the {@code DataSource} backing the standalone environment.
368      */
369     public String getDataSourcePassword()
370     {
371         return System.getProperty( DATA_SOURCE_PASSWORD );
372     }
373 
374     /**
375      * Gets the properties of the instance.
376      *
377      * @return The properties of the instance.
378      */
379     public Properties getProperties()
380     {
381         return System.getProperties();
382     }
383 
384     // SECTION-END
385     // SECTION-START[Constructors]
386     // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
387 
388     /** Creates a new {@code StandaloneEnvironment} instance. */
389     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
390     public StandaloneEnvironment()
391     {
392         // SECTION-START[Default Constructor]
393         super();
394         // SECTION-END
395     }
396     // </editor-fold>
397     // SECTION-END
398     // SECTION-START[Dependencies]
399     // SECTION-END
400     // SECTION-START[Properties]
401     // <editor-fold defaultstate="collapsed" desc=" Generated Properties ">
402 
403     /**
404      * Gets the value of the {@code defaultDataSourceClassName} property.
405      * @return The default class name of the {@code DataSource} backing the standalone environment.
406      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
407      */
408     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
409     private java.lang.String getDefaultDataSourceClassName()
410     {
411         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultDataSourceClassName" );
412         assert _p != null : "'defaultDataSourceClassName' property not found.";
413         return _p;
414     }
415 
416     /**
417      * Gets the value of the {@code defaultDataSourceContextFactoryName} property.
418      * @return The default class name of the {@code InitialContextFactory} providing the standalone {@code DataSource}.
419      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
420      */
421     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
422     private java.lang.String getDefaultDataSourceContextFactoryName()
423     {
424         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultDataSourceContextFactoryName" );
425         assert _p != null : "'defaultDataSourceContextFactoryName' property not found.";
426         return _p;
427     }
428 
429     /**
430      * Gets the value of the {@code defaultDataSourceJndiName} property.
431      * @return The default JNDI name of the data source backing the standalone JPA implementation.
432      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
433      */
434     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
435     private java.lang.String getDefaultDataSourceJndiName()
436     {
437         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultDataSourceJndiName" );
438         assert _p != null : "'defaultDataSourceJndiName' property not found.";
439         return _p;
440     }
441 
442     /**
443      * Gets the value of the {@code defaultEntityManagerFactoryJndiName} property.
444      * @return The default JNDI name the standalone {@code EntityManagerFactory} is bound to.
445      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
446      */
447     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
448     private java.lang.String getDefaultEntityManagerFactoryJndiName()
449     {
450         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultEntityManagerFactoryJndiName" );
451         assert _p != null : "'defaultEntityManagerFactoryJndiName' property not found.";
452         return _p;
453     }
454 
455     /**
456      * Gets the value of the {@code defaultEntityManagerJndiName} property.
457      * @return The default JNDI name the standalone {@code EntityManager} is bound to.
458      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
459      */
460     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
461     private java.lang.String getDefaultEntityManagerJndiName()
462     {
463         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultEntityManagerJndiName" );
464         assert _p != null : "'defaultEntityManagerJndiName' property not found.";
465         return _p;
466     }
467 
468     /**
469      * Gets the value of the {@code defaultJpaContextFactoryName} property.
470      * @return The default class name of the {@code InitialContextFactory} providing the JPA implementation backing the standalone environment.
471      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
472      */
473     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
474     private java.lang.String getDefaultJpaContextFactoryName()
475     {
476         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultJpaContextFactoryName" );
477         assert _p != null : "'defaultJpaContextFactoryName' property not found.";
478         return _p;
479     }
480 
481     /**
482      * Gets the value of the {@code defaultJtaContextFactoryName} property.
483      * @return The default class name of the of the {@code InitialContextFactory} providing the JTA implementation backing the standalone environment.
484      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
485      */
486     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
487     private java.lang.String getDefaultJtaContextFactoryName()
488     {
489         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultJtaContextFactoryName" );
490         assert _p != null : "'defaultJtaContextFactoryName' property not found.";
491         return _p;
492     }
493 
494     /**
495      * Gets the value of the {@code defaultJtaDataSourceJndiName} property.
496      * @return The default JNDI name of the data source backing the standalone JTA implementation.
497      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
498      */
499     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
500     private java.lang.String getDefaultJtaDataSourceJndiName()
501     {
502         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultJtaDataSourceJndiName" );
503         assert _p != null : "'defaultJtaDataSourceJndiName' property not found.";
504         return _p;
505     }
506 
507     /**
508      * Gets the value of the {@code defaultTransactionManagerJndiName} property.
509      * @return The default JNDI name the standalone {@code TransactionManager} is bound to.
510      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
511      */
512     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
513     private java.lang.String getDefaultTransactionManagerJndiName()
514     {
515         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultTransactionManagerJndiName" );
516         assert _p != null : "'defaultTransactionManagerJndiName' property not found.";
517         return _p;
518     }
519 
520     /**
521      * Gets the value of the {@code defaultTransactionSynchronizationRegistryJndiName} property.
522      * @return The default JNDI name the standalone {@code TransactionSynchronizationRegistry} is bound to.
523      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
524      */
525     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
526     private java.lang.String getDefaultTransactionSynchronizationRegistryJndiName()
527     {
528         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultTransactionSynchronizationRegistryJndiName" );
529         assert _p != null : "'defaultTransactionSynchronizationRegistryJndiName' property not found.";
530         return _p;
531     }
532 
533     /**
534      * Gets the value of the {@code defaultUserTransactionJndiName} property.
535      * @return The default JNDI name the standalone {@code UserTransaction} is bound to.
536      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
537      */
538     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.0", comments = "See http://jomc.sourceforge.net/jomc/1.0/jomc-tools" )
539     private java.lang.String getDefaultUserTransactionJndiName()
540     {
541         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "defaultUserTransactionJndiName" );
542         assert _p != null : "'defaultUserTransactionJndiName' property not found.";
543         return _p;
544     }
545     // </editor-fold>
546     // SECTION-END
547     // SECTION-START[Messages]
548     // SECTION-END
549 }