UK-US Data Bridge: Join TechnologyAdvice and OneTrust as they discuss the UK extension to the EU-US Data Privacy Framework (DPF).
Migrate, Modernize and Build Java Web Apps on Azure: This live workshop will cover methods to enhance Java application development workflow.
Senior Principal Member of Technical Staff at Oracle
Reading, GB
Joined Dec 1997
About
Gerard Davison is a Senior Principal Software Engineer working at Oracle in the UK on SOAP and REST tooling. Currently he is contributing in the area of WADL generation and client generation in the Jersey project and is maintaining the Abbot swing automation project. He also maintain a small holding of Hudson nodes run all those tests. He graduated from the University of Reading with a degree in Human Cybernetic and can't help looking for feedback loops.
Stats
Reputation: | 249 |
Pageviews: | 380.9K |
Articles: | 4 |
Comments: | 26 |
Articles
Comments
Aug 23, 2016 · Duncan Brown
Looks like based on the language spec this is unresolvable.
https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.13.1
Aug 23, 2016 · Duncan Brown
Sure, I use them in other posts but they would look something like this:
@FunctionalInterface
public interface ThrowingSupplier<T, E extends Exception> {
T get() throws E;
}
@FunctionalInterface
public interface ThrowingFunction<T, R, E extends Exception> {
R apply(T v) throws E;
}
Aug 23, 2016 · Duncan Brown
Yes sorry about that, I made the mistake when doing a final consistency tidy up before I posted, there is acually a interesting error as the problem is that I was very unlucky to have:
1. A instance of type Integer has a method that returns a String
2. A static method that take a int and return a string.
Both of these are valid matches and since you cannot specify the overloaded parameters for a method reference, well hence the compile error.
I was just very unlucky with the example I picked, I haven't yet figured out a way to resolve the first one, I will think on it some more.
Aug 15, 2016 · Alan Hohn
We used a standard ThrowableFunction<T,E>() because in JDK 8 the compiler can work out the most specific excpeiton thrown and bind to E when calling the enclusore, this prevents all calling code having toe deal with "Exception" rathern than say IOException.
This would means your jDK 8 example should look like this:
returnedClassLoaderString = ClassLoaderSwitcher.executeActionOnSpecifiedClassLoader(
urlClassLoader, this::mightThrowException);
Although passing in a class to provide the classloader context is sometimes more useful.
returnedClassLoaderString = ClassLoaderSwitcher.executeActionOnSpecifiedClassLoader(
someClass, this::mightThrowException);
Jun 23, 2016 · Dave Fecak
Just use a forEach to capture the context:
_.range(0,10).forEach(function (i) {
setTimeout(function(){
console.log(i);
},1000);
});
Much simpler and uses standard notation.
Mar 14, 2016 · Dave Fecak
Fair comment, I wil update the original blog, thanks for the pointer.
May 28, 2013 · Prabath Siriwardena
It looks like you are right, thanks for the link.
Gerard
May 28, 2013 · Prabath Siriwardena
It looks like you are right, thanks for the link.
Gerard
May 28, 2013 · Allen Coin
It looks like you are right, thanks for the link.
Gerard
May 28, 2013 · Allen Coin
It looks like you are right, thanks for the link.
Gerard
May 23, 2013 · Yoann Besson
Hi,
You say that @PathParam can only be of type string, this is a mistake in the spec. You can also use primitive and boxed primitive types, see this issue:
https://java.net/jira/browse/WEBSOCKET_SPEC-200
Cheers,
Gerard
May 23, 2013 · James Sugrue
Hi,
You say that @PathParam can only be of type string, this is a mistake in the spec. You can also use primitive and boxed primitive types, see this issue:
https://java.net/jira/browse/WEBSOCKET_SPEC-200
Cheers,
Gerard
May 14, 2013 · Prabath Siriwardena
Jason,
Nothing special but sometimes I use it when crossing over to a different meta level. So when you end up doing reflection to you have $someField for the Field object that represents a give field and someField for the actual value of that field.
It also helps a lot when writing code generators to make this distinction; but that is a far less common use case.
Gerard
May 14, 2013 · Allen Coin
Jason,
Nothing special but sometimes I use it when crossing over to a different meta level. So when you end up doing reflection to you have $someField for the Field object that represents a give field and someField for the actual value of that field.
It also helps a lot when writing code generators to make this distinction; but that is a far less common use case.
Gerard
May 10, 2013 · Prabath Siriwardena
Vidhya,
Appart from a main method to wrap the final two snippets there is no other code. This is a slight escaping issue in the EchoBeanClient that I have asked the DZone people to fix; but otherwise all the code is there.
Gerard
May 10, 2013 · Allen Coin
Vidhya,
Appart from a main method to wrap the final two snippets there is no other code. This is a slight escaping issue in the EchoBeanClient that I have asked the DZone people to fix; but otherwise all the code is there.
Gerard
Nov 12, 2009 · Gerd Storm
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Gerd Storm
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Gerd Storm
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Gerd Storm
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Jeff Martin
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Jeff Martin
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Jeff Martin
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 12, 2009 · Jeff Martin
Rainer,
Thanks for your reply, I do have to call you up on two points though.
First of all JDeveloper is not based on a JBuilder kernel, this was true in the early versions which use the JBuilder hybrid IDE written in Java,C,Pascal, Asembler and chicken entrails*. Since version 5.0 of JDeveloper we have used a new tool base re-written in Java. I will claim to be an authoritative person on this as I have worked on Oracle tools on and off for over a decade now. (Yes there are some classes with similar names; but that is to be expected given the heritage)
It is also worth mentioning that the ADF components can be deployed to other JEE application servers / even just plain Tomcat:
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
You can also work with over databases so you are not entirely stuck in the Oracle world with ADF. Part of the reason for this flexibility is that ADF is the basis for upcoming Fusion Applications which can be deployed to different application servers etc.
http://www.oracle.com/technology/products/jdev/htdocs/11/database.html
You might find that ADF is interesting even in cases where you are using a different database and application servers.
You will have to excuse my enthusiasm for ADF, I guess this seems like a bit of astro turfing on my part, the tools org in Oracle has been given on day a week out of there normal duties to build interesting ADF applications. I had never played much with ADF in anger to until they started us all on courses and I was pleasantly supprised how easy it was to use.
Anyway, enough rambling back to my day job
Gerard
Oracle JDeveloper WebService / Spring / SCA Lite tooling
* This was a nightmare to maintain but apparently required to get the right perfromance in a java ide.
Nov 11, 2009 · Gerd Storm
What about frameworks such as Oracle ADF:
http://www.oracle.com/technology/products/adf/index.html
Most simple web apps are drag and drop operations that build JSF apps. I would guess I could take someone from school have have them productively building apps in only a few months.
Of course disclaimer, I work on the JDeveloper product; but not ADF directly.
Gerard
Nov 11, 2009 · Jeff Martin
What about frameworks such as Oracle ADF:
http://www.oracle.com/technology/products/adf/index.html
Most simple web apps are drag and drop operations that build JSF apps. I would guess I could take someone from school have have them productively building apps in only a few months.
Of course disclaimer, I work on the JDeveloper product; but not ADF directly.
Gerard