Examples of Creator


Examples of com.saasovation.collaboration.domain.model.collaborator.Creator

        Forum forum =
            new Forum(
                    tenant,
                    DomainRegistry.forumRepository().nextIdentity(),
                    new Creator("jdoe", "John Doe", "jdoe@saasovation.com"),
                    new Moderator("jdoe", "John Doe", "jdoe@saasovation.com"),
                    "John Doe Does DDD",
                    "A set of discussions about DDD for anonymous developers.",
                    null);
View Full Code Here

Examples of cookxml.core.interfaces.Creator

  public Creator getCreator (DecodeEngine decodeEngine, String parentNS, String parentTag, Element elm, Object parentObj)
  {
    SpecialCreator[] specialCreators = m_specialCreators;
    for (int i = 0; i < specialCreators.length; ++i)
    {
      Creator creator = specialCreators[i].getCreator (decodeEngine, parentNS, parentTag, elm, parentObj);
      if (creator != null)
        return creator;
    }
    return null;
  }
View Full Code Here

Examples of jfun.yan.Creator

   */
  public Map preInstantiate(Container container, Map store){
    final UID[] keys = getOrderedUIDs();
    for(int i=0; i<keys.length; i++){
      final UID key = keys[i];
      final Creator c = (Creator)eager_instantiations.get(key);
      store.put(key, container.instantiateComponent(key, c));
    }
    return store;
  }
View Full Code Here

Examples of net.sf.jftp.gui.tasks.Creator

            unlock(false);
            fresh();
        }
        else if(e.getActionCommand().equals("mkdir"))
        {
            Creator c = new Creator("Create:", con);

            //TODO: do we need this on events? UpdateDaemon.updateRemoteDirGUI();
            //fresh();
        }
        else if(e.getActionCommand().equals("cmd"))
        {
            if(!(con instanceof FtpConnection))
            {
                Log.debug("This feature is for ftp only.");

                return;
            }

          
            int opt = JOptionPane.showOptionDialog(this, "Would you like to type one command or to open a shell?","Question", JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
                new ImageIcon(HImage.getImage(this, Settings.helpImage)), new String[] {"Shell","Command", "Cancel"}, "Command");
           
            if(opt == 1) {
              RemoteCommand rc = new RemoteCommand();
            }
            else if(opt == 0) {
              FtpConnection conn = (FtpConnection) con;
              Shell s = new Shell(conn.getCommandInputReader(), conn.getCommandOutputStream());
            }

            //fresh();
        }
        else if(e.getActionCommand().equals("cd"))
        {
            PathChanger pthc = new PathChanger("remote");

            //fresh();
            //String tmp = UITool.getPathFromDialog();
            //setPath(tmp);
        }
        else if(e.getActionCommand().equals("fresh"))
        {
            fresh();
        }
        else if(e.getActionCommand().equals("->"))
        {
            blockedTransfer(-2);
        }
        else if(e.getActionCommand().equals("<-"))
        {
            blockedTransfer(-2);
        }
        else if(e.getActionCommand().equals("list"))
        {
            try
            {
              if(!(con instanceof FtpConnection)) {
                 Log.debug("Can only list FtpConnection output!");
              }
             
              PrintStream out = new PrintStream(Settings.ls_out);
              for(int i=0; i<((FtpConnection)con).currentListing.size(); i++) {
                out.println(((FtpConnection)con).currentListing.get(i));
              }
              out.flush();
              out.close();
             
                java.net.URL url = new java.io.File(Settings.ls_out).toURL();
                Displayer d = new Displayer(url, new Font("monospaced",Font.PLAIN, 11));
                JFtp.desktop.add(d, new Integer(Integer.MAX_VALUE - 13));
            }
            catch(java.net.MalformedURLException ex)
            {
                ex.printStackTrace();
                Log.debug("ERROR: Malformed URL!");
            }
            catch(FileNotFoundException ex2)
            {
                ex2.printStackTrace();
                Log.debug("ERROR: File not found!");
            }
        }
        else if(e.getActionCommand().equals("type") && (!JFtp.uiBlocked))
        {
            if(!(con instanceof FtpConnection))
            {
                Log.debug("You can only set the transfer type for ftp connections.");

                return;
            }

            FtpConnection c = (FtpConnection) con;
            String t = c.getTypeNow();
            boolean ret = false;

            if(t.equals(FtpConnection.ASCII))
            {
                ret = c.type(FtpConnection.BINARY);
            }
            else if(t.equals(FtpConnection.BINARY))
            {
                ret = c.type(FtpConnection.EBCDIC);
            }

            if(t.equals(FtpConnection.EBCDIC) ||
                   (!ret && !t.equals(FtpConnection.L8)))
            {
                ret = c.type(FtpConnection.L8);
            }

            if(!ret)
            {
                c.type(FtpConnection.ASCII);
                Log.debug("Warning: type should be \"I\" if you want to transfer binary files!");
            }

            Log.debug("Type is now " + c.getTypeNow());
        }

        else if(e.getActionCommand().equals("que")) /*&& (!JFtp.uiBlocked))*/
        {
            if(!(con instanceof FtpConnection))
View Full Code Here

Examples of net.sf.jftp.gui.tasks.Creator

            unlock(false);
            fresh();
        }
        else if(e.getActionCommand().equals("mkdir"))
        {
            Creator c = new Creator("Create:", con);

            //fresh();
        }
        else if(e.getActionCommand().equals("cmd"))
        {
View Full Code Here

Examples of org.apache.avalon.lifecycle.Creator

      ((LogEnabled) accessor).enableLogging(getLogger());
    }

    extensions.addAccessorExtension(accessor);

    Creator creator = new AuthorizationLifecycleCreateExtension();

    if (creator instanceof LogEnabled)
    {
      ((LogEnabled) creator).enableLogging(getLogger());
    }
View Full Code Here

Examples of org.apache.tapestry.test.Creator

    public void testRollbackPageProperty()
    {
        IRequestCycle cycle = newCycle();
        ErrorLog log = newLog();

        Creator creator = new Creator();

        PageFixture page = (PageFixture) creator.newInstance(PageFixture.class);

        MockControl sourcec = newControl(PropertyPersistenceStrategySource.class);
        PropertyPersistenceStrategySource source = (PropertyPersistenceStrategySource) sourcec
                .getMock();
View Full Code Here

Examples of org.apache.tapestry.test.Creator

        return asset;
    }

    public void testPrerendered()
    {
        Creator creator = new Creator();
        ImageSubmit submit = (ImageSubmit) creator.newInstance(ImageSubmit.class);

        IValidationDelegate delegate = newDelegate();
        MockControl formc = newControl(IForm.class);
        IForm form = (IForm) formc.getMock();
        MockControl cyclec = newControl(IRequestCycle.class);
View Full Code Here

Examples of org.apache.tapestry.test.Creator

        MockControl cyclec = newControl(IRequestCycle.class);
        IRequestCycle cycle = (IRequestCycle) cyclec.getMock();
        IMarkupWriter writer = newWriter();
        IAsset image = newAsset(cycle, "image-url");

        Creator creator = new Creator();
        ImageSubmit submit = (ImageSubmit) creator.newInstance(ImageSubmit.class, new Object[]
        { "image", image });

        train(cyclec, cycle, form);

        form.getDelegate();
View Full Code Here

Examples of org.apache.tapestry.test.Creator

        MockControl cyclec = newControl(IRequestCycle.class);
        IRequestCycle cycle = (IRequestCycle) cyclec.getMock();
        IMarkupWriter writer = newWriter();
        IAsset image = newAsset(cycle, "disabled-image-url");

        Creator creator = new Creator();
        ImageSubmit submit = (ImageSubmit) creator.newInstance(ImageSubmit.class, new Object[]
        { "disabledImage", image, "disabled", Boolean.TRUE });

        train(cyclec, cycle, form);

        form.getDelegate();
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.