Should be able to do PluginManager.createCFC(_session,
_session.getApplicationData().getData("application.beanFactory"))That'll return the ObjectCFC and you should be able to invoke methods from there... Adam On Wed, Jun 3, 2009 at 9:39 PM, Brad B. <[email protected]> wrote: > > Thanks Adam, Matthew > I got a lot of what I wanted to do done, but I still need a couple more > things. > Is there a way to call a method on an already loaded component? > > For example, I have an application.beanFactory component and i wanted > to call the method getBean() within the plugin and append that > component to the request scope. I can manipulate the request scope and > i can even grab the component using > _session.getApplicationData().getData("application.beanFactory") but > it seems i can't actually call any of those methods within the plugin. > Is this even possible? > > Thanks. > > On Sat, May 30, 2009 at 6:41 AM, Adam Haskell <[email protected]> wrote: > > All the source for the plugins is in the CVS repo (different module than > the > > engine). > > > > > > Alan also had a blog entry on plugins: > > http://alan.blog-city.com/openbluedragon_plugin.htm > > > > > > Adam > > > > > > On Sat, May 30, 2009 at 2:18 AM, Brad B. <[email protected]> wrote: > >> > >> I was hoping the source was available specifically for the plugins and > >> interested to see if I could access the ServletContext from within the > >> plugin and/or System.getProperty(). One idea I had was a > >> renderAnalytics() function that would output the standard google > >> analytics by passing in the google property id and/or quantcast > >> publisher id since both of these are of fairly standard usage. > >> > >> Some other functions that could be useful would be renderSlot() and > >> renderAdManager() (for onRequestEnd() with cfhtmlhead) which would > >> take in a slotname and output the default code for it, and output the > >> complete admanager code, respectively, for those of us using Google > >> AdManager. > >> Another one is createLinkTo("dir","targetfile') which would lookup a > >> "dir" argument and render a complete uri to the "target" ala grails. > >> And lastly a getSystemProperty() which would get system properties > >> within the app-engine.xml for those of us using appengine. > >> I'm already using these functions by including them in Application.cfc > >> but I thought it would be cool to just make a plugin with all of these > >> since i'm using them so much and I liken Application.cfc to more of a > >> dispatcher than an actual component. So cleaning the Application.cfc > >> for me would be very nice too. > >> > >> > >> On Fri, May 29, 2009 at 10:48 PM, Matthew Woodward > >> <[email protected]> wrote: > >> > atomi wrote: > >> >> > >> >> Is the OpenBD Plugin PowerPack download available? > >> > > >> > What specifically are you looking for? Some of what used to be > >> > distributed > >> > separately has been rolled into the main distribution I believe. > >> > > >> > -- > >> > Matt Woodward > >> > [email protected] > >> > http://www.mattwoodward.com/blog > >> > > >> > Please do not send me proprietary file formats such as Word, > PowerPoint, > >> > etc. as attachments. > >> > http://www.gnu.org/philosophy/no-word-attachments.html > >> > > >> > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
