• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

meaning of factory

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some idea of what a socket does. I was just was wondering what is a ssl "factory"?
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic