• 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

PlugIn interface in struts

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys
iam having some doubts in org.apache.struts.action.PlugIn

we are having a class that implements this Plugin interface

that has 3 methods apart from init() and destory()(totally 5 methods)

i was not able to figure out when and where these methods are

called i thought that these 3 methods will be callback methods

looking for your replies

regards
amir
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only methods that Struts will call on your plugin are init() and destroy(). If you have other methods, the only way they will get called is if you locate the object and call them yourself. For example, you could make the object a singleton and provide it with a static getInstance() method that returns an instance of the class. Once you have a reference to the object, you can call whatever methods you want.
 
reply
    Bookmark Topic Watch Topic
  • New Topic