Package org.jboss.reloaded.naming.spi

Examples of org.jboss.reloaded.naming.spi.JavaEEModule


   private JavaEEComponent createJavaEEComponent()
   {
      final String beanName = getJavaEEModuleName();
     
      // TODO: must come in via MC injection
      final JavaEEModule module = getBean(beanName, JavaEEModule.class);

      // Web uses a Module context
      return new JavaEEComponent() {

         public Context getContext()
         {
            return module.getContext();
         }

         public JavaEEModule getModule()
         {
            return module;
         }

         public String getName()
         {
            return module.getName();
         }
      };
   }
View Full Code Here


    * @param businessInterface the business interface
    * @return the name within the app name space
    */
   protected String getAppJNDIName(Class<?> businessInterface)
   {
      JavaEEModule module = bean.getModule();
      return module.getName() + "/" + getModuleJNDIName(businessInterface);
   }
View Full Code Here

    * @param businessInterface the business interface
    * @return the name within the global name space.
    */
   protected String getGlobalJNDIName(Class<?> businessInterface)
   {
      JavaEEModule module = bean.getModule();
      JavaEEApplication app = module.getApplication();
      // EJB 3.1 4.4.1 <app-name> only applies if the session bean is packaged within an .ear file.
      String appName = app.isEnterpriseApplicationArchive() ? app.getName() : null;
      return (appName != null ? appName + "/" : "") + getAppJNDIName(businessInterface);
   }
View Full Code Here

TOP

Related Classes of org.jboss.reloaded.naming.spi.JavaEEModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.