Page 1 of 1

About Question enthuware.ocpjp.v7.2.1215 :

Posted: Sun Sep 22, 2013 2:44 pm
by The_Nick
Hi,
What do you mean with Provider in this context?
Can you provide any real life example?

Thanks in advance! (this is probably my last question since tomorrow I have the exam :roll: )

Thanks in advance.

The_Nick

Re: About Question enthuware.ocpjp.v7.2.1215 :

Posted: Sun Sep 22, 2013 4:36 pm
by admin
Provider is the one that understands a given URI and does something with it. JDBC connection string is a real life example. When you try to create a Connection, registered drivers are asked if they understand that connection string (which is nothing but a URI), so the drivers are the providers in this case. In case of file:// the file system is the provider.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1215 :

Posted: Sun Mar 09, 2014 3:07 am
by icepeanuts
What does it exactly mean by "preconditions"? Could you give me an example? Thanks.

Re: About Question enthuware.ocpjp.v7.2.1215 :

Posted: Sun Mar 09, 2014 3:33 am
by admin
pre condition could be anything that is required by the provider to access that url. In other words, if the provider understand the uri but is unable to work with it because something is wrong with it or something is missing. I don't have an example but if you need more details, you will need to check with the JavaDoc published by Oracle.