Package org.jboss.soa.esb.message.format

Examples of org.jboss.soa.esb.message.format.MessagePlugin


        {
          try
          {
            String pluginName = properties.getProperty(attrName);
            Class c = ClassUtil.forName(pluginName, getClass());
            MessagePlugin thePlugin = (MessagePlugin) c.newInstance();

            messageFormats.put(thePlugin.getType(), thePlugin);
          }
          catch (ClassNotFoundException ex)
          {
            ex.printStackTrace();
          }
View Full Code Here


  public Message getMessage(URI type) // returns a message of a specific type.
  {
    if (type == null)
      throw new IllegalArgumentException();

    MessagePlugin plugin = messageFormats.get(type);

    if (plugin != null)
      return plugin.getMessage();
    else
      return null;
  }
View Full Code Here

  public Object createBodyType (Message m, String bodyType)
  {
    if (m == null)
      throw new IllegalArgumentException();

    MessagePlugin plugin = messageFormats.get(m.getType());

    if (plugin != null)
      return plugin.createBodyType(m, bodyType);
    else
      throw new IllegalArgumentException();
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.message.format.MessagePlugin

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.