什么是jcompiler in shine企业模式? [英] what is jcompiler in shine enterprise pattern ?

查看:78
本文介绍了什么是jcompiler in shine企业模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是jcompiler?
in shine企业文档中说,当您的项目在线时,其中包含用于编译ur程序的类,这意味着您可以在运行时进行编译

有可能吗?

what is jcompiler?
in shine enterprise document said there is class in it that compile ur program when ur project is online , it means you can compile at run time

is it possible ?
and how does this class work ?

推荐答案

这真是难以置信!但这是真的!!!!!!!!!!!!!!!!!!

您知道这真的很有帮助!
当您开发对您来说很重要的项目时,可以在运行时添加一些东西!想象一下,您已经部署了一个项目,并且该项目正在运行,并且您的客户正在使用它!您只想在其中添加一些简单的内容!您必须停止项目,添加所需的内容,重新编译它,然后上传新的编译!如您所见,它确实很昂贵!您的客户可能会松懈他们的工作,当然也会浪费他们的时间!但是,当您使用Jcompiler时,可以免费添加所有想要的东西!

是开发ERP项目的最佳选择!因此,您无需关闭项目!

它也对面向方面的编程(AOP)有所帮助!当您将其与反射或ROP框架(Jshooter;第一个也是唯一的ROP框架)一起使用时,您可以轻松地使项目面向方面,而无需更多意大利面!


要使用Jcompiler,您的类应对其进行扩展,然后使用其方法.
Jcompiler有两种方法:

1- addCommandToClassBodyInWindowsRuntime(String class_add,String code)
2- addFileToWindowsRuntime(String class_code)

如果要将方法添加到项目中可用的类中,则必须使用第一种方法.
第一个参数是要向其添加方法的类的名称,第二个参数是您的代码.

例如:

addCommandToClassBodyInWindowsRuntime("mypackage.Engine","public void hello(){System.out.println(" hello);}")

而且,如果您需要向项目中添加一个尚未包含的新类,则首先应使用第二种方法来创建您的类.
创建后,您可以使用第一个方法将方法添加到此类.也可以在添加类时同时添加方法,如下所示:

addFileToWindowsRuntime("public class Engine {public void hello(){System.out.println(" hello);}}")

然后使用第一种方法将您的方法添加到您的项目中.

这样,您可以将类添加到项目中,甚至可以将方法或字段添加到您的一个类中,然后使用添加的值!
It''s unbelievable! But it''s true!!!!!!!!!!!!!!!

You know it''s really helpful!
When you are developing a project that is important to you to add some things at run time you can use it! Imagine, you have deployed a project and it is running and your customers are using it! You just want to add some simple thing to it! You have to stop your project, add what you want, recompile it then upload your new compile! As you see it''s really expensive! Your customers may loose their work and of course their time! But when you use Jcompiler you can add all things you want without any cost!

It is the best choice to develop ERP projects! So you never need to down your project!

It helps Aspect Oriented Programming (AOP) too! When you use it with reflect, or a ROP framework (Jshooter; the first and the only ROP framework), so you can easily make your project Aspect oriented with no more spaghetti!


To use Jcompiler your class should extends it and then use its methods.
Jcompiler has two methods:

1- addCommandToClassBodyInWindowsRuntime(String class_add,String code)
2- addFileToWindowsRuntime(String class_code)

If you want to add a method to a class that is available in your project you must use the first method.
The first argument is name of the class you want to add method to it , the second one is your code.

For example:

addCommandToClassBodyInWindowsRuntime( "mypackage.Engine" , "public void hello(){System.out.println("hello");}")

And if you need to add a new class to your project which there isn''t in it yet, first you should create your class by using second method.
You are being able to add method to this class by using the first method, after creating it; also you can add method at the same time when you are adding class, same as below:

addFileToWindowsRuntime(" public class Engine { public void hello() { System.out.println("hello"); } } " )

And then use the first method to add your method to your project.

In this way you can add classes to your project or even a method or field to one of your classes then use the added values!


这篇关于什么是jcompiler in shine企业模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆