Package mx4j.log

Examples of mx4j.log.Logger.trace()


         final MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
         if (trace) logger.trace("MBeanServerDelegate " + delegate.getClass() + " created successfully");

         // create MBean server

         if (trace) logger.trace("Creating MBeanServer...");
         MBeanServer mbs = builder.newMBeanServer(domain, null, delegate);
         if (trace) logger.trace("MBeanServer " + mbs + " created successfully");
         if (logger.isEnabledFor(Logger.INFO))
         {
            String mbeanServerId = getMBeanServerId(mbs);
View Full Code Here


         // create MBean server

         if (trace) logger.trace("Creating MBeanServer...");
         MBeanServer mbs = builder.newMBeanServer(domain, null, delegate);
         if (trace) logger.trace("MBeanServer " + mbs + " created successfully");
         if (logger.isEnabledFor(Logger.INFO))
         {
            String mbeanServerId = getMBeanServerId(mbs);
            if (mbeanServerId != null)
               logger.info("Created MBeanServer with ID: " + mbeanServerId);
View Full Code Here

         }
         return mbs;
      }
      catch (SecurityException x)
      {
         if (trace) logger.trace("Security Exception caught while creating an MBeanServer", x);
         throw x;
      }
   }

View Full Code Here

   public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
   {
      this.server = server;
      objectName = name == null ? new ObjectName(this.server.getDefaultDomain(), "type", "MLet") : name;
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " preRegistered successfully");
      return objectName;
   }

   public void postRegister(Boolean registrationDone)
   {
View Full Code Here

         server = null;
         if (logger.isEnabledFor(Logger.INFO)) logger.info("MLet service " + objectName + " was not registered");
      }
      else
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " postRegistered successfully");
      }
   }

   public void preDeregister() throws Exception
   {
View Full Code Here

   }

   public void preDeregister() throws Exception
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " preDeregistered successfully");
   }

   public void postDeregister()
   {
      Logger logger = getLogger();
View Full Code Here

   }

   public void postDeregister()
   {
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MLet service " + objectName + " postDeregistered successfully");
   }

   public void addURL(String url) throws ServiceNotFoundException
   {
      addURL(createURL(url));
View Full Code Here

   public void addURL(URL url)
   {
      Logger logger = getLogger();
      if (!Arrays.asList(getURLs()).contains(url))
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Adding URL to this MLet (" + objectName + ") classpath: " + url);
         super.addURL(url);
      }
      else
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("URL already present in this MLet (" + objectName + ") classpath: " + url);
View Full Code Here

         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Adding URL to this MLet (" + objectName + ") classpath: " + url);
         super.addURL(url);
      }
      else
      {
         if (logger.isEnabledFor(Logger.TRACE)) logger.trace("URL already present in this MLet (" + objectName + ") classpath: " + url);
      }
   }

   public Class loadClass(String name, ClassLoaderRepository repository) throws ClassNotFoundException
   {
View Full Code Here

      // and came again to query this MLet which, if not stopped, will delegate to the CLR
      // again in an endless loop. This is possible if this MLet is the parent of a child
      // MLet registered before its parent.
      if (loadingWithRepository.get() == Boolean.TRUE)
      {
         if (trace) logger.trace("MLet " + this + " is recursively calling itself to load class " + name + ": skipping further searches");
         throw new ClassNotFoundException(name);
      }

      if (trace) logger.trace("Finding class " + name + "...");
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.