Snippets of the day – Monday, October 28, 2013

Posted on Posted in Snippets

snippets

Here are some of the most recently published snippets!

Make UCM clearcase activity using cleartool command

Here are some examples on how to make, create and set activity in IBM Clearcase UCM environment, using cleartool mkact command.

Source: http://www.ipnom.com/ClearCase-Commands/mkactivity.html

Open the snippet

Author:    lbottaro

Create a usage pattern for several heterogeneous methods

Let’s say we have several methods implemented in the same way but that should invoke different operations inside their implementation.
e.g. we have a wrapper of API, and each API should be checked for the reload of endpoint if failed…
Under these circumstances, C# lambda expressions should be very useful, but what about Java? Here there is a solution.
The best part of this solution is that reflection is not needed and strong typing is preserved.

Open the snippet

Author:    cghersi

Leave a Reply

Your email address will not be published. Required fields are marked *