jesbox, You can dynamically load classes using Class.forName or even your own custom ClassLoader. As Jay noted, this is how dynamic languages like Groovy, JRuby, and Rhino work, and they run perfectly well on App Engine.
Rick, The real question is what compiler/runtime do you need to try to get running in App Engine? You'll want one that is "embeddable" - i.e. designed to be run as a library as opposed to just standalone. What language are your custom business rules written in? You may have better luck finding an embeddable compiler/runtime for scripting-based languages. On Fri, Mar 11, 2011 at 3:25 AM, jesbox <[email protected]> wrote: > I'm not sure about the idea. Sounds like giving a rocket launcher to a > kid. > > You let the adaptation happen in the full development environment made > for professional programmers. If the re-deployment does not work out, > will your framework reset the GAE invisibly to the user? And so on. > > Then there is this UI you made that I presume limits what the user can > specify quite a lot. So you could instead make a GAE application that > receives the settings from the UI and makes the appropriate brancings > accordingly. Like you write a program that adapts it behavior > depending on some parameter file, just that the parameters comes from > the UI. > > Besides, I think that dynamic classloading is not possible in GAE. > > /J > > On Mar 7, 9:13 am, Rick Smith <[email protected]> wrote: > > Hi all > > > > Can I create and compile a java class at run time on goolge > > appengine. > > Use case: I have given a UI to my application user that they can > > define their own business logic.Now what is going to be main challenge > > is that I need to make new deployment each time when some one need to > > modify its business logic. As an alternate I want to store source code > > in data base and compile it when required. > > > > Regards > > > > Rick > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
