Package com.nokia.dempsy.container

Examples of com.nokia.dempsy.container.ContainerException


      {
         invocationMethods = new AnnotatedMethodInvoker(mpClass, MessageHandler.class);
      }
      catch(IllegalArgumentException ex)
      {
         throw new ContainerException(ex.getMessage());
      }
      Set<Class<?>> keys = invocationMethods.getMethods().keySet();
      for(Class<?> key: keys)
      {
         Method messageKey = AnnotatedMethodInvoker.introspectAnnotationSingle(key, MessageKey.class);
View Full Code Here


    */
   public Object invoke(Object instance, Object message, StatsCollector statsCollector) throws ContainerException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
   {
      Class<?> messageClass = message.getClass();
      if(!isMessageSupported(message))
         throw new ContainerException(mpClassName + ": no handler for messages of type: " + messageClass.getName());

      StatsCollector.TimerContext tctx = null;
      try
      {
         tctx = statsCollector.handleMessageStarted();
View Full Code Here

   //----------------------------------------------------------------------------

   private void validateAsMP() throws ContainerException
   {
      if(mpClass.getAnnotation(MessageProcessor.class) == null)
         throw new ContainerException("MP class not annotated as MessageProcessor: " + mpClassName);
   }
View Full Code Here

         // we do *NOT* allow inherited implementation
         return mpClass.getDeclaredMethod("clone");
      }
      catch(SecurityException e)
      {
         throw new ContainerException("container does not have access to the message processor class \"" + mpClassName + "\"", e);
      }
      catch(NoSuchMethodException e)
      {
         throw new ContainerException("The message processor class \"" + mpClassName + "\" does not declare the clone() method.");
      }
   }
View Full Code Here

TOP

Related Classes of com.nokia.dempsy.container.ContainerException

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.