Examples of Listeners


Examples of com.citytechinc.cq.component.dialog.Listeners

  protected Listeners getListeners() {
    Listener[] listeners = parameters.getAnnotation().listeners();
    if (listeners.length > 0) {
      ListenersParameters parameters = new ListenersParameters();
      parameters.setListenerAnnotations(listeners);
      return new Listeners(parameters);
    }
    return null;
  }
View Full Code Here

Examples of com.citytechinc.cq.component.dialog.Listeners

    boolean hideLabel = getHideLabelForField();

    String inputValue = getInputValueForField(checkBoxAnnotation);
    boolean checked = getCheckedForField(checkBoxAnnotation);

    Listeners listeners = getListeners();

    CheckBoxWidgetParameters widgetParameters = new CheckBoxWidgetParameters();
    widgetParameters.setInputValue(inputValue);
    widgetParameters.setChecked(checked);
    widgetParameters.setFieldLabel(fieldLabel);
View Full Code Here

Examples of com.citytechinc.cq.component.dialog.Listeners

                Listener[] listeners = tab.listeners();

                if (listeners.length > 0) {
                    ListenersParameters parameters = new ListenersParameters();
                    parameters.setListenerAnnotations(listeners);
                    tabHolder.setListeners(new Listeners(parameters));
                }

        if (StringUtils.isNotEmpty(tab.path())) {
          CQIncludeParameters params = new CQIncludeParameters();
          params.setFieldName(DEFAULT_TAB_FIELD_NAME + tabsList.size());
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.Listeners

    public synchronized List<Listener> listeners()
    {
        if( this.listeners == null )
        {
            final ListFactory<Listener> listenersListFactory = ListFactory.start();
            final Listeners listenersAnnotation = getAnnotation( Listeners.class );
           
            if( listenersAnnotation != null )
            {
                for( Class<? extends Listener> cl : listenersAnnotation.value() )
                {
                    try
                    {
                        listenersListFactory.add( cl.newInstance() );
                    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.Listeners

    synchronized List<Listener> listeners()
    {
        if( this.listeners == null )
        {
            final ListFactory<Listener> listenersListFactory = ListFactory.start();
            final Listeners listenersAnnotation = getAnnotation( Listeners.class );
           
            if( listenersAnnotation != null )
            {
                for( Class<? extends Listener> cl : listenersAnnotation.value() )
                {
                    try
                    {
                        listenersListFactory.add( cl.newInstance() );
                    }
View Full Code Here

Examples of org.jberet.job.Listeners

            artifactFactory.destroy(obj);
        }
    }

    private void createJobListeners() {
        Listeners listeners = jobExecution.getSubstitutedJob().getListeners();
        if (listeners != null) {
            List<Listener> listenerList = listeners.getListener();
            int count = listenerList.size();
            this.jobListeners = new JobListener[count];
            for (int i = 0; i < count; i++) {
                Listener listener = listenerList.get(i);
                this.jobListeners[i] = createArtifact(listener.getRef(), null, listener.getProperties());
View Full Code Here

Examples of org.jberet.job.Listeners

        return noRollbackExceptionClasses == null ||
                !noRollbackExceptionClasses.matches(e.getClass());
    }

    private void createChunkRelatedListeners() {
        Listeners listeners = batchContext.getStep().getListeners();
        if (listeners != null) {
            String ref;
            Object o;
            for (Listener l : listeners.getListener()) {
                ref = l.getRef();
                Class<?> cls = null;
                if (stepRunner.chunkRelatedListeners != null) {
                    cls = stepRunner.chunkRelatedListeners.get(ref);
                }
View Full Code Here

Examples of org.jberet.job.Listeners

            plan = partition.getPlan();
        }
    }

    private void createStepListeners() {
        Listeners listeners = step.getListeners();
        if (listeners != null) {
            String ref;
            for (Listener listener : listeners.getListener()) {
                ref = listener.getRef();
                Class<?> cls = jobContext.getArtifactClass(ref);
               
                //a class can implement multiple listener interfaces, so need to check it against all listener types
                //even after previous matches
View Full Code Here

Examples of org.jberet.job.model.Listeners

        //else if the current exception does not match the configured no-rollback-exceptions, need to rollback
        return noRollbackExceptionClasses == null || !noRollbackExceptionClasses.matches(e.getClass());
    }

    private void createChunkRelatedListeners() {
        final Listeners listeners = batchContext.getStep().getListeners();
        if (listeners == null) {
            return;
        }
        String ref;
        Object o;
        for (final RefArtifact l : listeners.getListeners()) {
            ref = l.getRef();
            Class<?> cls = null;
            if (stepRunner.chunkRelatedListeners != null) {
                cls = stepRunner.chunkRelatedListeners.get(ref);
            }
View Full Code Here

Examples of org.jberet.job.model.Listeners

            plan = partition.getPlan();
        }
    }

    private void createStepListeners() {
        final Listeners listeners = step.getListeners();
        if (listeners == null) {
            return;
        }
        String ref;
        for (final RefArtifact listener : listeners.getListeners()) {
            ref = listener.getRef();
            final Class<?> cls = jobContext.getArtifactClass(ref);

            //a class can implement multiple listener interfaces, so need to check it against all listener types
            //even after previous matches
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.