/** Copyright (c) Oracle Corporation 1999.  All Rights Reserved. */

package oracle.jbo.common.ampool;

import java.util.ListResourceBundle;
import oracle.jbo.JboException;
import oracle.jbo.common.StringManager;
import oracle.jbo.common.CheckedListResourceBundle;
import oracle.jbo.common.Diagnostic;


public class AMPoolMessageBundle
   extends CheckedListResourceBundle
{
   //
   // Ranges:
   //   STR_ 02000 - 02299
   //   MSG_ 12000 - 12299
   //   EXC_ 30000 - 32999
   //

   static
   {
      Diagnostic.println("AMPoolMessageBundle (language base) being initialized");
   }

   public static final String EXC_AMPOOL_MGR_ALREADY_CREATED    = "30000";
   public static final String EXC_AMPOOL_INVALID_COOKIE         = "30001";
   public static final String EXC_AMPOOL_INVALID_POOL_SIGNATURE = "30002";
   public static final String EXC_AMPOOL_CHECKOUT_FAILED        = "30003";
   public static final String EXC_AMPOOL_INVALID_CHECKIN        = "30004";

   /**
    * Gets the key-value association table.
    *
    * @return an array of key-value pairs.
    **/
   public Object[][] getContents()
   {
      return sMessageStrings;
   }


   /**
    * Private 2-D array of key-value pairs
    **/
   private static final Object[][] sMessageStrings =
   {
      {EXC_AMPOOL_MGR_ALREADY_CREATED, "Application Module Pool {0} has already been created."},
      {EXC_AMPOOL_INVALID_COOKIE, "Cookie {0} is invalid."},
      {EXC_AMPOOL_INVALID_POOL_SIGNATURE, "Cookie's pool signature is invalid."},
      {EXC_AMPOOL_CHECKOUT_FAILED, "The application pool, {0}, failed to checkout an application module instance."},
      {EXC_AMPOOL_INVALID_CHECKIN, "An application module that was not checked out was checked into the pool, {0}"}
   }  ;
}
