Examples of HandlerDefinition


Examples of com.sun.jsftemplating.layout.descriptors.handler.HandlerDefinition

        String key = (String) entry.getKey();
        // Strip off .class
        key = key.substring(0, key.lastIndexOf('.'));

        // Create a new HandlerDefinition
        HandlerDefinition def = new HandlerDefinition(key);

        // Set the class / method
        String value = props.get(key + '.' + "method");
        def.setHandlerMethod((String) entry.getValue(), value);

        // Read the input defs
        def.setInputDefs(readIODefs(props, key, true));

        // Read the output defs
        def.setOutputDefs(readIODefs(props, key, false));

        // Add the Handler...
        hdMap.put(key, def);
    }
View Full Code Here

Examples of org.jibx.ws.server.HandlerDefinition

     * @throws WsException on error creating handlers
     */
    private void createHeaderHandlers(ServiceDefinition sdef, OutContext outCtx, InContext inCtx) throws WsException {
        if (sdef.getHandlerDefinitions() != null) {
            for (int i = 0; i < sdef.getHandlerDefinitions().size(); i++) {
                HandlerDefinition hdef = (HandlerDefinition) sdef.getHandlerDefinitions().get(i);
                Object handler = hdef.getObject();
                if (handler instanceof InHandler) {
                    inCtx.addHandler(SoapPhase.HEADER, (InHandler) handler);
                } else if (handler instanceof OutHandler) {
                    outCtx.addHandler(SoapPhase.HEADER, (OutHandler) handler);
                }
View Full Code Here

Examples of org.jibx.ws.server.HandlerDefinition

    static Service createSoapServiceWithHandler(String handlerMethodName, String handlerId, Class handlerClass)
        throws NoSuchMethodException, JiBXException, WsException {

        ServiceDefinition sdef = getServiceDefinition(handlerMethodName);
        HandlerDefinition hdef = new HandlerDefinition();
        hdef.setClassName(handlerClass.getName());
        sdef.setHandlerDefinitions(Arrays.asList(new HandlerDefinition[] { hdef }));
        sdef.init();

        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, sdef);
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

   */
  public CustomModelObjectConfiguratorDescriptor checkAppliance(ModelObject mo)
  {
    if (mo instanceof ActivityNode)
    {
      HandlerDefinition handler = ((ActivityNode) mo).getActivityHandlerDefinition();

      String className = handler.getHandlerClassName();
      if (className != null && ! className.contains("." + CoreConstants.SYSTEM_MODEL_NAME.toLowerCase() + "."))
      {
        int i = className.lastIndexOf('.');
        if (i >= 0)
        {
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

   * Default constructor.
   */
  public JavaActivityItemImpl()
  {
    super();
    setHandlerDefinition(new HandlerDefinition());
  }
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

      return;
    super.copyFrom(source, copyMode);

    JavaActivityItemImpl src = (JavaActivityItemImpl) source;

    setHandlerDefinition(new HandlerDefinition());
    handlerDefinition.copyFrom(src.handlerDefinition, Copyable.COPY_DEEP);
    handlerDefinition.setOwner(this);
  }
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

   * Default constructor.
   */
  public ActivityNodeImpl()
  {
    activityItemType = ItemTypes.ACTIVITY;
    setActivityHandlerDefinition(new HandlerDefinition());
  }
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

    ActivityNodeImpl src = (ActivityNodeImpl) source;

    // Copy member data
    activityItemType = src.activityItemType;

    setActivityHandlerDefinition(new HandlerDefinition());
    activityHandlerDefinition.copyFrom(src.activityHandlerDefinition, Copyable.COPY_DEEP);
    activityHandlerDefinition.setOwner(this);
  }
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

    }
    setName(newName);

    if (ai instanceof JavaActivityItem)
    {
      setActivityHandlerDefinition(new HandlerDefinition());
      try
      {
        activityHandlerDefinition.copyFrom(((JavaActivityItem) ai).getHandlerDefinition(), Copyable.COPY_DEEP);
      }
      catch (CloneNotSupportedException e)
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition

    {
      item.setName(getName());
    }
    if (ai instanceof JavaActivityItem)
    {
      HandlerDefinition aiHandler = new HandlerDefinition();
      ((JavaActivityItem) ai).setHandlerDefinition(aiHandler);
      try
      {
        aiHandler.copyFrom(getActivityHandlerDefinition(), Copyable.COPY_DEEP);
      }
      catch (CloneNotSupportedException e)
      {
        // Doesn't happen
      }
      aiHandler.setOwner(ai);
    }

    // Copy the sockets
    ai.clearSockets();
    for (Iterator it = getSockets(); it.hasNext();)
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.