Package nexj.core.runtime

Examples of nexj.core.runtime.InvocationContext.initialize()


   {
      InvocationContext context = (InvocationContext)Repository.getMetadata().getComponent("System.InvocationContext")
         .getInstance(null);

      context.setAudited(false);
      context.initialize((m_sUser == null) ? null : new SimplePrincipal(m_sUser));
      context.setLocale(Locale.getDefault());
      context.getUnitOfWork().commit();

      ThreadContextHolder.setContext(context);
View Full Code Here


            new File(new URI(sOutputURL)) : new File(sOutputURL), XMLUtil.ENCODING);
      Set dataSourceSet = null;
      InvocationContext context =
         (InvocationContext)metadata.getComponent("System.InvocationContext").getInstance(null);

      context.initialize(null);
      context.setLocale(Locale.getDefault());
      context.setProtected(false);
      context.setSecure(false);
      context.setPartitioned(false);
View Full Code Here

      {
         DataSource db = metadata.getDataSource(sDataSource);
         Component comp = metadata.findComponent("System.InvocationContext");
         context = (comp != null) ? (InvocationContext)comp.getInstance(null) : new InvocationContext(metadata);

         context.initialize(null);
         context.setLocale(Locale.getDefault());
         context.setProtected(false);
         context.setSecure(false);
         context.setPartitioned(false);
View Full Code Here

         InvocationContext context = (InvocationContext)m_contextComponent.getInstance(null);
         int nCookie = -1;

         try
         {
            context.initialize(null);
            context.setSecure(false);
            context.setPartitioned(false);
            nCookie = Logger.pushContext(context.getPrincipal().getName());

            Metadata metadata = context.getMetadata();
View Full Code Here

            }

            InvocationContext context = (InvocationContext)metadata.getComponent("System.InvocationContext").getInstance(null);

            context.setAudited(false);
            context.initialize(null, m_globalEnv);
            context.setLocale(m_locale);

            Machine machine = context.getMachine();

            if (bInit)
View Full Code Here

                  try
                  {
                     testContext.setAudited(false);
                     testContext.getGlobalCache().clear();
                     testContext.initialize((m_sSystemUser == null) ? null : new SimplePrincipal(m_sSystemUser),
                        new GlobalEnvironment(m_globalEnv));

                     if (m_container != null && m_sSystemUser != null)
                     {
                        Event grantDebugEvent = testContext.getUserClass().findEvent(GRANT_DEBUG, 0);
View Full Code Here

            nCookie = Logger.pushContext(sAddress);
         }

         String sUser = strategy.getUser();

         context.initialize((sUser != null) ? new SimplePrincipal(sUser) : null);

         int nUserCookie = Logger.pushContext(context.getPrincipal().getName());

         if (nCookie == -1)
         {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.