Package org.jberet.job.model

Examples of org.jberet.job.model.Properties


        Field field = (Field) injectionPoint.getMember();

        if (propName.length() == 0) {
            propName = field.getName();
        }
        final Properties properties = ArtifactCreationContext.getCurrentArtifactCreationContext().properties;
        if (properties != null) {
            String rawVal = properties.get(propName);
            if (rawVal == null || rawVal.isEmpty()) {
                return null;
            }
            Class<?> fieldType = field.getType();
            return fieldType.isAssignableFrom(String.class) ? (T) rawVal :
View Full Code Here


    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            ut.setTransactionTimeout(globalTimeout);
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            tm.setTransactionTimeout(globalTimeout);
View Full Code Here

        if (propName.length() == 0) {
            propName = field.getName();
        }
        final ArtifactCreationContext ac = ArtifactCreationContext.getCurrentArtifactCreationContext();
        final Properties properties = ac.properties;
        if (properties != null) {
            final String rawVal = properties.get(propName);
            if (rawVal == null || rawVal.isEmpty()) {
                return null;
            }
            final Class<?> fieldType = field.getType();
            return fieldType.isAssignableFrom(String.class) ? (T) rawVal :
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            ut.setTransactionTimeout(globalTimeout);
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            tm.setTransactionTimeout(globalTimeout);
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            tm.setTransactionTimeout(globalTimeout);
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            tm.setTransactionTimeout(globalTimeout);
View Full Code Here

    @Override
    public void run() {
        try {
            //When running in EE environment, set global transaction timeout for the current thread
            // from javax.transaction.global.timeout property at step level
            final Properties stepProps = stepRunner.step.getProperties();
            int globalTimeout = 180; //default 180 seconds defined by spec
            if (stepProps != null) {
                final String globalTimeoutProp = stepProps.get("javax.transaction.global.timeout");
                if (globalTimeoutProp != null) {
                    globalTimeout = Integer.valueOf(globalTimeoutProp);
                }
            }
            tm.setTransactionTimeout(globalTimeout);
View Full Code Here

TOP

Related Classes of org.jberet.job.model.Properties

Copyright © 2018 www.massapicom. 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.