List of usage examples for java.lang Boolean TRUE
Boolean TRUE
To view the source code for java.lang Boolean TRUE.
Click Source Link
From source file:br.com.sicoob.cro.cop.batch.configuration.ItemReaderInjector.java
public void inject() throws Exception { Field[] fields = BatchUtil.getDeclaredFields(this.step.getReader()); for (Field field : fields) { if (Validation.isFieldAnnotatedWith(field, Context.class)) { LOG.log(Level.INFO,// ww w . ja v a 2s . c om BatchPropertiesUtil.getInstance().getMessage(BatchKeys.BATCH_INJECTOR_INFO.getKey(), new String[] { BatchKeys.CONTEXT.getKey(), field.getName() })); field.setAccessible(Boolean.TRUE); field.set(this.step.getReader(), createContext()); } } }
From source file:br.com.sicoob.cro.cop.batch.configuration.ItemWriterInjector.java
public void inject() throws Exception { Field[] fields = BatchUtil.getDeclaredFields(this.step.getWriter()); for (Field field : fields) { if (Validation.isFieldAnnotatedWith(field, Context.class)) { LOG.log(Level.INFO,//from w ww. j ava 2s. c o m BatchPropertiesUtil.getInstance().getMessage(BatchKeys.BATCH_INJECTOR_INFO.getKey(), new String[] { BatchKeys.CONTEXT.getKey(), field.getName() })); field.setAccessible(Boolean.TRUE); field.set(this.step.getWriter(), createContext()); } } }
From source file:edu.harvard.mcz.imagecapture.BarcodeReadTest.java
public static String checkForBarcode(BufferedImage image) { // Check the entire image for a barcode and return. String returnValue = ""; LuminanceSource source = new BufferedImageLuminanceSource(image); Result result;//from w w w . j a v a2 s. c om BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); try { QRCodeReader reader = new QRCodeReader(); Hashtable<DecodeHintType, Object> hints = null; hints = new Hashtable<DecodeHintType, Object>(3); hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE); result = reader.decode(bitmap, hints); returnValue = result.getText(); } catch (ReaderException e) { e.printStackTrace(); returnValue = ""; } return returnValue; }
From source file:com.ace.erp.filter.authc.CustomFormAuthenticationFilter.java
/** * ???/*from w w w . j a v a 2 s. c o m*/ * * @return */ @Override public String getSuccessUrl() { String username = (String) SecurityUtils.getSubject().getPrincipal(); User user = userService.getUserByName(username); if (user != null && Boolean.TRUE.equals(user.getAdmin())) { return getAdminDefaultSuccessUrl(); } return getDefaultSuccessUrl(); }
From source file:org.yamj.filescanner.dto.LibraryEntryDTO.java
/** * Construct an empty library file// w w w . jav a 2 s . c o m */ public LibraryEntryDTO() { this.path = ""; this.playerpath = ""; this.description = ""; this.include = ""; this.exclude = ""; this.scrape = Boolean.TRUE; this.watch = Boolean.TRUE; }
From source file:br.com.sicoob.cro.cop.batch.configuration.ItemProcessorInjector.java
public void inject() throws Exception { Field[] fields = BatchUtil.getDeclaredFields(this.step.getProcessor()); for (Field field : fields) { if (Validation.isFieldAnnotatedWith(field, Context.class)) { LOG.log(Level.INFO,/*from w ww. j av a 2 s.com*/ BatchPropertiesUtil.getInstance().getMessage(BatchKeys.BATCH_INJECTOR_INFO.getKey(), new String[] { BatchKeys.CONTEXT.getKey(), field.getName() })); field.setAccessible(Boolean.TRUE); field.set(this.step.getProcessor(), createContext()); } } }
From source file:com.opengamma.integration.timeseries.snapshot.RedisLKVFileReader.java
public RedisLKVFileReader(final File inputFile, final BlackList schemeBlackList, final BlackList dataFieldBlackList) { ArgumentChecker.notNull(inputFile, "input file"); ArgumentChecker.notNull(schemeBlackList, "scheme black list"); ArgumentChecker.notNull(dataFieldBlackList, "data field black list"); _inputFile = inputFile;/*from w ww .j a va2 s . co m*/ for (String dataField : dataFieldBlackList.getBlackList()) { _dataFieldBlackList.put(dataField.toUpperCase(), Boolean.TRUE); } for (String scheme : schemeBlackList.getBlackList()) { _schemeBlackList.put(scheme.toUpperCase(), Boolean.TRUE); } }
From source file:org.apache.streams.gnip.powertrack.PowerTrackActivitySerializer.java
public PowerTrackActivitySerializer() { mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE); mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, Boolean.TRUE); mapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, Boolean.TRUE); }
From source file:com.sonatype.nexus.ssl.plugin.internal.HttpContextAttributeSSLContextSelector.java
@Override public SSLContext select(final HttpContext context) { Object useTrustStore = context.getAttribute(SSLContextSelector.USE_TRUST_STORE); if (Boolean.TRUE.equals(useTrustStore)) { return trustStore.getSSLContext(); }/*from w w w . j a v a 2s.c o m*/ return null; }
From source file:org.owasp.webgoat.session.DatabaseUtilities.java
/** * <p>getConnection.</p>//w ww . j a v a2 s . com * * @param user a {@link java.lang.String} object. * @param context a {@link org.owasp.webgoat.session.WebgoatContext} object. * @return a {@link java.sql.Connection} object. * @throws java.sql.SQLException if any. */ public static synchronized Connection getConnection(String user, WebgoatContext context) throws SQLException { Connection conn = connections.get(user); if (conn != null && !conn.isClosed()) return conn; conn = makeConnection(user, context); connections.put(user, conn); if (dbBuilt.get(user) == null) { new CreateDB().makeDB(conn); dbBuilt.put(user, Boolean.TRUE); } return conn; }