File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Service Provider Interface and its usage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Service Provider Interface and its usage" Watch "Service Provider Interface and its usage" New topic
Author

Service Provider Interface and its usage

Avinash Tiwari
Ranch Hand

Joined: Sep 20, 2006
Posts: 50
What is a service provider interface in actual. Does it applies when you want to create a vendor product and expose the service or it can be utilized in the application developer way too.

What condition precedes usage of this.

Does it have any resemblance with Fa├žade pattern?

Please advice.

Thanks,
Avinash


Work hard and rest not till the job is done....
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29241
    
139

See this blog post describing the pattern. A facade is meant for reducing the number of calls. Service provider (and locator) are for finding an object.

Note: I've seen ServiceLocator as a pattern and that's the one Oracle/the JEE cert references.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Service Provider Interface and its usage
 
Similar Threads
def of Service Provider Interface?
Need help on API SPI design pattern
ASP
what is spi signify in javax.security.auth.spi package?
Regarding javax.xml.ws.Provider interface