Package javax.batch.api

Examples of javax.batch.api.BatchProperty


    public StringBuffer getStringBuffer(final InjectionPoint injectionPoint) {
        return getProperty(injectionPoint);
    }

    private <T> T getProperty(final InjectionPoint injectionPoint) {
        final BatchProperty batchProperty = injectionPoint.getAnnotated().getAnnotation(BatchProperty.class);
        String propName = batchProperty.name();
        Field field = (Field) injectionPoint.getMember();

        if (propName.length() == 0) {
            propName = field.getName();
        }
View Full Code Here


                            fieldVal = jobContext;
                        } else if (fType == StepContext.class) {
                            //fieldVal may be null when StepContext was not stored in data map, as in job listeners
                            fieldVal = stepContext;
                        } else if (hasBatchProps) {
                            final BatchProperty batchPropertyAnn = f.getAnnotation(BatchProperty.class);
                            if (batchPropertyAnn != null) {
                                String propName = batchPropertyAnn.name();
                                if (propName.equals("")) {
                                    propName = f.getName();
                                }
                                final String sVal = batchProps.get(propName);
                                if (sVal != null) {
View Full Code Here

    public StringBuffer getStringBuffer(final InjectionPoint injectionPoint) {
        return getProperty(injectionPoint);
    }

    private <T> T getProperty(final InjectionPoint injectionPoint) {
        final BatchProperty batchProperty = injectionPoint.getAnnotated().getAnnotation(BatchProperty.class);
        String propName = batchProperty.name();
        final Field field = (Field) injectionPoint.getMember();

        if (propName.length() == 0) {
            propName = field.getName();
        }
View Full Code Here

                            fieldVal = jobContext;
                        } else if (fType == StepContext.class) {
                            //fieldVal may be null when StepContext was not stored in data map, as in job listeners
                            fieldVal = stepContext;
                        } else if (hasBatchProps) {
                            final BatchProperty batchPropertyAnn = f.getAnnotation(BatchProperty.class);
                            if (batchPropertyAnn != null) {
                                String propName = batchPropertyAnn.name();
                                if (propName.equals("")) {
                                    propName = f.getName();
                                }
                                final String sVal = batchProps.get(propName);
                                if (sVal != null) {
View Full Code Here

                            fieldVal = data.get(DataKey.JOB_CONTEXT);
                        } else if (fType == StepContext.class) {
                            //fieldVal may be null when StepContext was not stored in data map, as in job listeners
                            fieldVal = data.get(DataKey.STEP_CONTEXT);
                        } else if (hasBatchProps) {
                            BatchProperty batchPropertyAnn = f.getAnnotation(BatchProperty.class);
                            if (batchPropertyAnn != null) {
                                String propName = batchPropertyAnn.name();
                                if (propName.equals("")) {
                                    propName = f.getName();
                                }
                                String sVal = BatchUtil.getBatchProperty(batchProps, propName);
                                if (sVal != null) {
View Full Code Here

      }
    });
  }

  private String getBatchPropertyFieldValue(Field field, Properties batchArtifactProperties) {
    BatchProperty batchProperty = field.getAnnotation(BatchProperty.class);

    if (!"".equals(batchProperty.name())) {
      return getBatchProperty(batchProperty.name(), batchArtifactProperties);
    }

    return getBatchProperty(field.getName(), batchArtifactProperties);
  }
View Full Code Here

TOP

Related Classes of javax.batch.api.BatchProperty

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.