protected boolean isModifiedSinceConditionValid(Long modifiedSinceHeader, Long lastModified) { if (lastModified <= modifiedSinceHeader) { log.debug("Resource has not been modified since requested timestamp"); return true; } log.debug("Resource has been modified since requested timestamp"); return false; }
public void setDefaultLocale(String defaultLocale) { this.defaultLocale = defaultLocale; log.debug("Default locale was set to " + this.defaultLocale); }
public void setSupportedLocales(List<String> supportedLocales) { this.supportedLocales = supportedLocales; log.debug("Supported locales are " + this.supportedLocales); }
public static void endTest() { Lifecycle.clearThreadlocals(); log.debug( "<<< End test" ); }
public void setRollbackOnly() throws IllegalStateException, SystemException { log.debug("marking Hibernate transaction for rollback"); assertActive(); rollbackOnly = true; }
public static void endApplication(Map<String,Object> app) { log.debug("Shutting down application and destroying contexts"); Context tempApplicationContext = new ApplicationContext( app ); Contexts.applicationContext.set(tempApplicationContext); Contexts.destroy(tempApplicationContext); Contexts.applicationContext.set(null); Contexts.eventContext.set(null); Contexts.sessionContext.set(null); Contexts.conversationContext.set(null); application = null; }
@BeforeClass @Parameters("binaryDir") public void setBinaryDir(@Optional String binaryDir) { if (binaryDir == null) return; log.debug("Setting binary directory: " + binaryDir); this.binaryDir = binaryDir; }
@BeforeClass @Parameters("replaceNull") public void setReplaceNull(@Optional Boolean replaceNull) { if (replaceNull == null) return; log.debug("Setting replace null: " + replaceNull); this.replaceNull = replaceNull; }
public void debug(Object object, Throwable t, Object... params) { if ( isDebugEnabled() ) { log.debug( interpolate(object, params), t ); } } public void info(Object object, Object... params)
@BeforeClass @Parameters("database") public void setDatabase(@Optional String database) { if (database == null) return; log.debug("Setting database: " + database); this.database = Database.valueOf(database.toUpperCase()); }
public static void beginInitialization() { log.debug(">>> Begin initialization"); Contexts.applicationContext.set( new ApplicationContext( Lifecycle.getApplication() ) ); Contexts.eventContext.set( new BasicContext(ScopeType.EVENT) ); Contexts.conversationContext.set( new BasicContext(ScopeType.CONVERSATION) ); }
@Destroy public void destroy() { log.debug("Stopping JBoss Cache"); try { cache.stop(); cache.destroy(); cache = null; } catch (Exception e) { throw new IllegalStateException("Error stopping JBoss Cache", e); } }
@Override public String encodeURL(String url) { String result = super.encodeUrl(rewriteURL(url)); log.debug("encodeURL " + url + " -> " + result); return wrappedEncodeURL(result); }
public void rollback() throws IllegalStateException, SecurityException, SystemException { log.debug("rolling back JTA transaction"); try { delegate.rollback(); } finally { getSynchronizations().afterTransactionRollback(); } }
@Create public void createAgent() throws Exception { Properties properties = new Properties(); loadFromPath(properties, configurationFile); setLocalProperties(properties); agent = org.drools.agent.RuleAgent.newRuleAgent(properties); log.debug("Creating new rules agent"); }
@Override public void registerSynchronization(Synchronization sync) { if ( log.isDebugEnabled() ) { log.debug("registering synchronization: " + sync); } assertActive(); getDelegate().registerSynchronization(sync); }
private void deployProcess(JbpmContext jbpmContext, String definitionResource) { ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(definitionResource); if (log.isDebugEnabled()) { log.debug( "deploying process definition : " + processDefinition.getName() ); } jbpmContext.deployProcessDefinition(processDefinition); }
/** * Redirect to the view id. */ protected void redirect(String viewId, Map<String, Object> parameters, boolean includePageParams) { if ( Strings.isEmpty(viewId) ) { viewId = Pages.getCurrentViewId(); } if ( log.isDebugEnabled() ) log.debug("redirecting to: " + viewId); FacesManager.instance().redirect(viewId, parameters, true, includePageParams); }
@Create public void startup() throws Exception { log.debug( "Starting jBPM" ); ProcessState.setDefaultSubProcessResolver( new SeamSubProcessResolver() ); installProcessDefinitions(); installPageflowDefinitions(); //JbpmExpressionEvaluator.setVariableResolver( new SeamVariableResolver() ); //JbpmExpressionEvaluator.setFunctionMapper( new SeamFunctionMapper() ); JbpmExpressionEvaluator.setExpressionEvaluator( new SeamExpressionEvaluator() ); UserCodeInterceptorConfig.setUserCodeInterceptor( new SeamUserCodeInterceptor() ); }