Stream

Join this community to post or comment

stefan kahr

Testing and TCKs  - 
 
Hi, i need your help. I have Tons of line with this code: logger.Info("xxxxxx");
Now I want to replace with Eclipse and RegEx to get something like this: if (logger.isinfoenabled()){ logger.Info("xxxx")}

What would be the right RegEx command?
1
1
Grzegorz Bernaś's profile photoAlbert Lacambra's profile photo
16 comments
 
+stefan kahr without to question your solution, if the problem is the string concatenation, I would try to wrap / decorate the logger or maybe use a StringBuilder. However the la solution need probably too much refactor. In both cases you would avoid an if sentence all over the code for each log call

Add a comment...
 
Learn ‪#‎Spring‬ ‪#‎Framework‬ with latest updates.

http://expertwebindia.com/
3
Add a comment...
 
Custom Role Mapping Provider in Weblogic
1
Add a comment...

About this community

Worldwide
 
Learn #java with nominal fee by Expertwebindia. Enroll yourself by contacting us on below details. Classes will be conducted on weekends. Timing will be known while you enroll yourself.

Skype : gaurav.srivastav237
Email:gauravsrivastav04@gmail.com

http://www.expertwebindia.com/free-core-java-online-training/

Here's the list of sections covered in online sessions.
Core java
    Introduction to Java(Free)
    OOps concept in Java(Free)
    Data Types & Operators(Free)
    Inheritence(Free)
    Usage of this,super,final and static keywords(Free)
    Method Overloading(Free)
    Interface(Free)
    JDBC(Fee 300 INR )
    Collections(Fee 500 INR )
    Multithreading(Fee 300 INR )

Advanced Java(Paid Training)
    Servlets (Fee 500 INR)
    JSP (Fee 500 INR)
    Spring 4(Fee 1000 INR)
    Hibernate 4(Fee 1000 INR)
    DWR(Fee 500 INR)
    File uploading
    Web services in java(Fee 1000 INR)
Expertwebindia now going to introduce the new way of teaching Java technology to their readers. They can get supported skype video calling, instant problem
1
Add a comment...
 
Spring Cloud Brixton.RC1 introduces stateful patterns, better telemetry for Java microservices on Spring Boot 1.3 -  NetflixOSS Atlas, Zookeeper, Consul, Zipkin, and Spring Cloud Stream support
http://spring.io/blog/2016/03/24/spring-cloud-brixton-rc1-is-now-available
1
Add a comment...
 
Do you use or appreciate Spring MVC?
Please take the time to let @zeroturnaround know in their oft-cited survey! Yes, it's pretty short. And ZT will donate $ to devoxx for kids if they get over 1000 responses http://bit.ly/1Ldi0Sl
Developer Productivity Survey 2016 analyzes the Java tools and technologies people use, enabling us to map out the landscape of the Java / JVM ecosystem.
1
Add a comment...
 
 
New post about #CDI SPI
CDI users ask me very often why they should adopt CDI and stop using their old framework of way of doing their developments. The answer to this question can be found in advanced CDI stuff: extension mechanism and CDI SPI. Yes, CDI true killing feature is not accessible out of the box and you ...
4
Add a comment...
 
Reactor 2.5: A second generation reactive foundation for the JVM by  Stéphane Maldini http://spring.io/blog/2016/02/16/reactor-2-5-a-second-generation-reactive-foundation-for-the-jvm
<h2><a href="#entering-reactive-streams-era" class="anchor" name="entering-reactive-streams-era"></a>Entering Reactive Streams Era</h2> <p>Reactor 2.0 development started by the end of 2014, around the same time as <a href="http://reactive-streams.org">Reactive Streams</a>. We were keen on joining the effort and early adopt a <a href="https://github.com/reactive-streams/reactive-streams-jvm">backpressure protocol</a> to mitigate our main message-...
1
Add a comment...

Olivier Sips (memorynotfound)

Frontend Technologies  - 
 

This tutorial shows how to debug #JSF Lifecycle with a custom DebugPhaseListener. The first place that most developers check for information about where issues are occurring is the application logs. As you are debugging JSF life cycles it can be quite difficult to see in your logs in what phase the errors are occurring. We will show you how you can add some debug information to your logs about the current life cycle events of JSF.
2
Add a comment...