Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.ChannelType


            }
         }, progress);
         m_soaLoader.resolveReferences();

         // dispatcher channel properties loaded from environment.
         ChannelType type = m_metadata.getChannelType("ObjectQueue");

         m_dispatcherChannel.setType(type);
         m_metadata.addChannel(m_dispatcherChannel);

         m_helper.loadResources(".channel", "Channel", "channel", new ResourceHandler()
View Full Code Here


    */
   protected void loadChannelType(Element chtElement, String sName)
   {
      XMLMetadataHelper.verifyRootElement(chtElement, "ChannelType");

      final ChannelType type = new ChannelType(sName);

      type.setMetadata(m_metadata);
      type.setLoader(m_helper.getClassObject(XMLUtil.getReqStringAttr(chtElement, "loader")));

      String sExporter = XMLUtil.getStringAttr(chtElement, "exporter");

      if (sExporter != null)
      {
         type.setExporter(m_helper.getClassObject(sExporter));
      }

      type.setSender(m_helper.getClassObject(XMLUtil.getReqStringAttr(chtElement, "sender")));

      String sReceiver = XMLUtil.getStringAttr(chtElement, "receiver");

      if (sReceiver != null)
      {
         type.setReceiver(m_helper.getClassObject(sReceiver));
      }

      String sElement = XMLUtil.getReqStringAttr(chtElement, "element");

      XMLMetadataHelper.validateName(sElement);
View Full Code Here

    * @param channelElement The DOM element containing the channel.
    * @param sName The data source name.
    */
   protected void loadChannel(Element channelElement, String sName)
   {
      ChannelType type = m_metadata.getChannelTypeByElement(channelElement);

      m_metadata.addChannel(((XMLIntegrationMetadataLoader)m_helper.getClassInstance(type.getLoader()))
         .loadChannel(channelElement, sName, type, this));
   }
View Full Code Here

    * @return The channel type object.
    * @throws MetadataLookupException if the channel type does not exist.
    */
   public ChannelType getChannelType(String sName)
   {
      ChannelType channelType = (ChannelType) m_channelTypeMap.get(sName);

      if (channelType != null)
      {
         return channelType;
      }
View Full Code Here

      if (element.getNodeName().equals("Channel"))
      {
         return getChannelType(XMLUtil.getReqStringAttr(element, "type"));
      }

      ChannelType channelType = (ChannelType)m_channelTypeMap.get(element.getNodeName());

      if (channelType != null)
      {
         return channelType;
      }
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.ChannelType

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.