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?
Grzegorz Bernaś's profile photoAlbert Lacambra's profile photo
+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.
Add a comment...
Custom Role Mapping Provider in Weblogic
Add a comment...

About this community

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

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)
    Usage of this,super,final and static keywords(Free)
    Method Overloading(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
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
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
Developer Productivity Survey 2016 analyzes the Java tools and technologies people use, enabling us to map out the landscape of the Java / JVM ecosystem.
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 ...
Add a comment...
Reactor 2.5: A second generation reactive foundation for the JVM by  Stéphane Maldini
<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="">Reactive Streams</a>. We were keen on joining the effort and early adopt a <a href="">backpressure protocol</a> to mitigate our main message-...
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.
Add a comment...