• 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

Factory design pattern implementation

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello experts,

I am a newbie to design pattern and trying to implement it for a project scenario in Oracle ADF.  The scenario is as follows:

I have a managed bean named RegionManagedBean which holds bindings of the jsff page.  The regions are instantiated dynamically and the only one region has to be displayed on the page.  For this purpose, the Factory design method has been chosen where we have:
  • IRegion
  • : An interface which has as methods getRegion() and saveRegion()

  • RegionFactory
  • : This class instantiates the region based on its name

  • Region1 ... Region2
  • : For each region to be instantiated a class exists which returns the bonded region of the jsff  page.  This class extends the managedBean and implements the IRegion interface.


    The region is well instantiated and returned on the page.  Now the issue is on the region there are specific actions to be performed like clear.  For each region, there are specific fields to be cleared.  How to access region specific functionalities from the jsff? Is that possible?

    Thank you in anticipation

    Neerou
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic