Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax -> jakarta in some javadoc and README #6

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

* jberet-schedule-executor sub-module
* scheduler based on `java.util.concurrent.ScheduledExecutorService`, suitable for Java SE applications.
* scheduler based on `javax.enterprise.concurrent.ManagedScheduledExecutorService`, suitable for Java EE applications.
* scheduler based on `jakarta.enterprise.concurrent.ManagedScheduledExecutorService`, suitable for Java EE applications.
* jberet-schedule-timer sub-module
* scheduler based on EJB Timer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

package org.jberet.schedule;

import org.jberet.schedule._private.ScheduleExpressionAdapter;
import java.io.Serializable;
import java.util.Properties;

import jakarta.ejb.ScheduleExpression;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Properties;
import org.jberet.schedule._private.ScheduleExpressionAdapter;

/**
* Represents job schedule configuration, typically passed from the client side
Expand Down Expand Up @@ -54,7 +54,7 @@ public final class JobScheduleConfig implements Serializable {
/**
* The schedule expression for calendar-based job schedule.
*
* @see "javax.ejb.ScheduleExpression"
* @see "jakarta.ejb.ScheduleExpression"
*/
@XmlJavaTypeAdapter(ScheduleExpressionAdapter.class)
final ScheduleExpression scheduleExpression;
Expand Down Expand Up @@ -163,7 +163,7 @@ public Properties getJobParameters() {
}

/**
* Gets {@code javax.ejb.ScheduleExpression} for calendar-based job schedule.
* Gets {@code jakarta.ejb.ScheduleExpression} for calendar-based job schedule.
*
* @return schedule expression, may be null
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@

package org.jberet.schedule;

import static jakarta.batch.runtime.BatchStatus.COMPLETED;
import static jakarta.batch.runtime.BatchStatus.FAILED;
import static jakarta.batch.runtime.BatchStatus.STARTED;
import static jakarta.batch.runtime.BatchStatus.STOPPED;
import static jakarta.batch.runtime.BatchStatus.STOPPING;

import java.util.Date;
import java.util.List;
import java.util.Properties;

import jakarta.batch.api.BatchProperty;
import jakarta.batch.api.listener.AbstractJobListener;
import jakarta.batch.runtime.BatchStatus;
import jakarta.batch.runtime.JobExecution;
import jakarta.batch.runtime.context.JobContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;

import org.jberet.schedule._private.ScheduleExecutorLogger;

import static jakarta.batch.runtime.BatchStatus.*;

/**
* An implementation of {@code javax.batch.api.listener.JobListener} that
* An implementation of {@code jakarta.batch.api.listener.JobListener} that
* schedules the next execution of the same job to start some time after
* the current execution ends.
* <p>
Expand Down