File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

meaning of factory

 
Steven Alvarez
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the meaning of the following code?







If you could explain what each line does, that would be cool. Thanks!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's hard to know how to answer you without some more information. Is it the Java constructs you're not clear on? do you already understand Java pretty well but want more information about what this particular socket code is accomplishing? Are you familiar with sockets and what they do?
[ March 31, 2007: Message edited by: Merrill Higginson ]
 
Steven Alvarez
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some idea of what a socket does. I was just was wondering what is a ssl "factory"?
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Steven Alvarez:
I was just was wondering what is a ssl "factory"?


A "factory" is a sort of Design Pattern -- used to handle the creation of objects. This is needed because there may be some special handling that is needed in addition to just using the "new" operator.

Henry
 
pete stein
Bartender
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you familiar with design patterns and in particular, the factory method design pattern? I'm just learning about them now and find them fascinating. A useful book if you are somewhat new to all this like me is the "Head First Design Patterns". The most famous and seminal book on this subject is "Design Patterns" by "the Gang of Four" (Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides).

A decent web page on this can be found here.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic