Package nexj.core.runtime

Examples of nexj.core.runtime.Context


            join(keys, ", ")
         }, cause);

      if (location instanceof ContextHolder)
      {
         Context context = ((ContextHolder)location).getContext();

         if (context != null)
         {
            StringBuffer buf = new StringBuffer(128);

            buf.append(m_sErrCode);
            buf.append('.');
            buf.append((location == null) ? "Object" : location.getLazyClassName());

            if (keys != null)
            {
               buf.append('.');
               append(buf, keys, "-");
            }

            String sFullId = buf.toString();

            if (context.getString(sFullId) != sFullId)
            {
               m_sErrCode = sFullId;

               if (location instanceof Named)
               {
View Full Code Here


    * @return false if a SQL connection could not be obtained
    */
   public static void testConnection(Metadata metadata, String sDataSource) throws SQLException
   {
      InvocationContext context = null;
      Context contextSaved = ThreadContextHolder.getContext();

      try
      {
         DataSource db = metadata.getDataSource(sDataSource);
         Component comp = metadata.findComponent("System.InvocationContext");
View Full Code Here

   /**
    * @see nexj.core.tools.ContextREPL#initializeContext()
    */
   protected Context initializeContext()
   {
      Context ctx = new MinimalContext();

      ctx.initialize(null, null);

      return ctx;
   }
View Full Code Here

      {
         progressProxy.shiftRange(0.15);
         progress.progress("info.meta.loadingSystemResources", null, 0);
      }

      Context contextSaved = ThreadContextHolder.getContext();

      try
      {
         ThreadContextHolder.setContext(m_machine.getContext());
View Full Code Here

    * Runs the unit test.
    * @see java.lang.Runnable#run()
    */
   protected void run()
   {
      Context contextSaved = ThreadContextHolder.getContext();

      try
      {
         Metadata metadata = Repository.getMetadata();
         boolean bFirstRun = true;
View Full Code Here

    * @param channel The integration channel.
    * @param sType The integration message type name.
    */
   protected void run(ContextRunnable strategy, Channel channel, String sType)
   {
      Context contextSaved = ThreadContextHolder.getContext();
      InvocationContext context = null;
      int nCookie = -1;

      try
      {
View Full Code Here

      {
         Attribute attribute = getStaticAttribute(nOrdinal);

         // Check the access rights

         Context context = ThreadContextHolder.getContext();

         if (context.isSecure())
         {
            if (!attribute.isUpdateable(context.getPrivilegeSet()))
            {
               throw new SecurityViolationException(
                  (attribute.isReadOnly()) ?
                     "err.runtime.attributeReadOnlyAccess" :
                     "err.runtime.attributeUpdateAccess",
View Full Code Here

TOP

Related Classes of nexj.core.runtime.Context

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.