Examples of Action


Examples of org.apache.log4j.joran.action.Action

    }
   
    Iterator i = applicableActionList.iterator();

    while (i.hasNext()) {
      Action action = (Action) i.next();

      // now let us invoke the action. We catch and report any eventual
      // exceptions
      try {
        action.begin(ec, tagName, atts);
      } catch( ActionException ae) {
        switch(ae.getSkipCode()) {
        case ActionException.SKIP_CHILDREN:
          skip = (Pattern) pattern.clone();
          break;
View Full Code Here

Examples of org.apache.log4j.rolling.helper.Action

      try {
        RolloverDescription rollover =
          rollingPolicy.initialize(getFile(), getAppend());

        if (rollover != null) {
          Action syncAction = rollover.getSynchronous();

          if (syncAction != null) {
            syncAction.execute();
          }

          setFile(rollover.getActiveFileName());
          setAppend(rollover.getAppend());
          lastRolloverAsyncAction = rollover.getAsynchronous();
View Full Code Here

Examples of org.apache.logging.log4j.core.appender.rolling.action.Action

        //
        //   work renames backwards
        //
        for (int i = renames.size() - 1; i >= 0; i--) {
            final Action action = renames.get(i);
            try {
                LOGGER.debug("DefaultRolloverStrategy.purgeAscending executing {} of {}: {}", //
                        i, renames.size(), action);
                if (!action.execute()) {
                    return -1;
                }
            } catch (final Exception ex) {
                LOGGER.warn("Exception during purge in RollingFileAppender", ex);
                return -1;
View Full Code Here

Examples of org.apache.logging.log4j.core.appender.rolling.helper.Action

            manager.getProcessor().formatFileName(buf, fileIndex);
            final String currentFileName = manager.getFileName();

            String renameTo = subst.replace(buf);
            final String compressedName = renameTo;
            Action compressAction = null;

            if (renameTo.endsWith(".gz")) {
                renameTo = renameTo.substring(0, renameTo.length() - 3);
                compressAction = new GZCompressAction(new File(renameTo), new File(compressedName), true);
            } else if (renameTo.endsWith(".zip")) {
View Full Code Here

Examples of org.apache.maven.plugins.changes.model.Action

            }
            sink.tableRow_();

            for ( int idx = 0; idx < actionList.size(); idx++ )
            {
                Action action = (Action) actionList.get( idx );

                sink.tableRow();

                sinkShowTypeIcon( sink, action.getType() );

                sink.tableCell();

                if ( escapeHTML )
                {
                    sink.text( action.getAction() );
                }
                else
                {
                    sink.rawText( action.getAction() );
                }

                // no null check needed classes from modello return a new ArrayList
                if ( StringUtils.isNotEmpty( action.getIssue() ) || ( !action.getFixedIssues().isEmpty() ) )
                {
                    sink.text( " " + bundle.getString( "report.changes.text.fixes" ) + " " );

                    // Try to get the issue management system specified in the changes.xml file
                    String system = action.getSystem();
                    // Try to get the issue management system configured in the POM
                    if ( StringUtils.isEmpty( system ) )
                    {
                        system = this.system;
                    }
                    // Use the default issue management system
                    if ( StringUtils.isEmpty( system ) )
                    {
                        system = DEFAULT_ISSUE_SYSTEM_KEY;
                    }
                    if ( !canGenerateIssueLinks( system ) )
                    {
                        constructIssueText( action.getIssue(), sink, action.getFixedIssues() );
                    }
                    else
                    {
                        constructIssueLink( action.getIssue(), system, sink, action.getFixedIssues() );
                    }
                    sink.text( "." );
                }

                if ( StringUtils.isNotEmpty( action.getDueTo() ) || ( !action.getDueTos().isEmpty() ) )
                {
                    constructDueTo( sink, action, bundle, action.getDueTos() );
                }

                sink.tableCell_();

                if ( NO_TEAMLIST.equals( teamlist ) )
                {
                    sinkCell( sink, action.getDev() );
                }
                else
                {
                    sinkCellLink( sink, action.getDev(), teamlist + "#" + action.getDev() );
                }

                if ( this.isAddActionDate() )
                {
                    sinkCell( sink, action.getDate() );
                }

                sink.tableRow_();
            }
View Full Code Here

Examples of org.apache.maven.werkz.Action

        catch ( CyclicGoalChainException e )
        {
            throw new JellyTagException( e );
        }

        Action action;

        action = getAction();

        if ( action == null )
        {
View Full Code Here

Examples of org.apache.pivot.wtk.Action

        private ButtonGroup imageMenuGroup = null;

        @Override
        public Vote previewExpandedChange(Rollup rollup) {
            if (component == null) {
                Action.getNamedActions().put("selectImageAction", new Action() {
                    @Override
                    public String getDescription() {
                        return "Select Image Action";
                    }
View Full Code Here

Examples of org.apache.qpid.server.util.Action

                childRemoved(consumer);

            }
        });
        session.setModelObject(this);
        session.addDeleteTask(new Action()
        {
            @Override
            public void performAction(final Object object)
            {
                session.removeDeleteTask(this);
View Full Code Here

Examples of org.apache.struts.action.Action

  @Test
  public void testCreationAction() throws Exception
  {
    ActionCreator actionCreator = new ActionCreatorImpl();
    Action action = actionCreator.createAction(SimpleDispatchAction.class);
    BasicDispatchController controller = (BasicDispatchController) action;
    assert controller.getBeanSource() != null;
  }
View Full Code Here

Examples of org.apache.struts2.convention.annotation.Action

        // Test with a slash
        PackageConfig packageConfig = createPackageConfigBuilder("/namespace");
        this.conventionsService = new ConventionsServiceImpl("/WEB-INF/location");
        DefaultResultMapBuilder builder = new DefaultResultMapBuilder(context, container, "dispatcher,velocity,freemarker");
        Action actionAnn = OverrideResultAction.class.getMethod("execute").getAnnotation(Action.class);
        Map<String, ResultConfig> results = builder.build(OverrideResultAction.class, actionAnn, "action100", packageConfig);
        ResultConfig result = results.get("error");
        assertNotNull(result);
        assertEquals("/WEB-INF/location/namespace/error-overriden.jsp", result.getParams().get("location"));
    }
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.