Package com.sun.enterprise

Examples of com.sun.enterprise.InjectionManager


  J2EETransactionManager tm =
    J2EETransactionManagerImpl.createTransactionManager();
  sw.setTransactionManager(tm);

        // Create the Injection Manager and set it on the switch.
        InjectionManager injectionMgr = new InjectionManagerImpl();
        sw.setInjectionManager(injectionMgr);              

        return result;
    }
View Full Code Here


  try {
      if(callbackHandler != null) {
          handlerClass = Class.forName(callbackHandler, true, loader);
    handler = (CallbackHandler) handlerClass.newInstance();
                Thread.currentThread().setContextClassLoader(loader);
                InjectionManager injMgr = Switch.getSwitch().getInjectionManager();
                injMgr.injectInstance(handler, descriptor);
               
      } else {
          handler = new com.sun.enterprise.security.auth.login.LoginCallbackHandler(guiAuth);
      }
  } catch(Exception e) {
View Full Code Here

           

            // Inject the application client's injectable resources.  This
            // must be done after java:comp/env is initialized but before
            // the application client's main class is invoked.
            InjectionManager injMgr = Switch.getSwitch().getInjectionManager();
            injMgr.injectClass(cl, appDesc);           
                           
            if(runClient) {
                Utility.invokeApplicationMain(cl, applicationArgs);
                _logger.info("Application main() finished normally");
            }


            // inject the pre-destroy methods before shutting down
            injMgr.invokeClassPreDestroy(cl, appDesc);           

      // Let's shutdown all the system resource adapters that are 
      // active in the container.
      shutDownSystemAdapters();
View Full Code Here

           
            // Inject the application client's injectable resources.  This
            // must be done after java:comp/env is initialized but before
            // the application client's main class is invoked.  Also make
            // sure the injection mgr will clean up during shutdown.
            InjectionManager injMgr = Switch.getSwitch().getInjectionManager();
            cleanup.setInjectionManager(injMgr, cl, appDesc);
           
            injMgr.injectClass(cl, appDesc);           
                  
            /*
             Try to locate a script with the same name as the main class,
             but with a file type matching the file types handled by one of the
             scripting engines currently available.
View Full Code Here

TOP

Related Classes of com.sun.enterprise.InjectionManager

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.