reloading

Reload used classes at runtime Java

老子叫甜甜 提交于 2020-01-09 09:09:33
问题 I'm working on a program that watches a directory and runs all tests in the directory when it sees changes in the directory. This requires the program to dynamically load the classes, instead of getting the cached copies. I can dynamically load the test classes. Changes to the tests get detected and used at runtime. However, this isn't the case for the classes tested by the tests. My code for dynamically loading the classes and returning a list of test classes: List<Class<?>> classes = new

Wicket - runtime class reloading

Deadly 提交于 2020-01-06 02:49:07
问题 I have classical complaint - rebuilding and reloading the web app takes too long. I want to compile the classes (preferrably from the IDE) or change a static file and let the server check what changed and act approprietly (reload the class/file). What are my options for Wicket + JDK 1.6 ? I'd prefer Jetty, but Tomcat, JBoss AS or others are good, too. I am not using the ReloadingWicketFilter since I use mvn jetty:run-exploded because it's the simplest way to run my app with desired

Rapid Application Development in Eclipse Alfresco (Hot Reloading)

喜你入骨 提交于 2020-01-05 13:43:05
问题 I want to make changes in the SendAsEmailActionExecuter.java file in the sub-project AMP (add-action-repo) which is inside All-in-one project in Alfresco 5 community. It is an example as you can see in the following link. I am developing in eclipse and when I customize an ftl or js file the eclipse the eclipse reload the changes. How can achieve the same thing with java file without the need to execute clean install -Prun command every time. I have notice this guide but the DemoComponentTest

How to reload only a userscript, i.e. without reloading the page?

ⅰ亾dé卋堺 提交于 2019-12-31 04:09:51
问题 I'm working on a Greasemonkey userscript for a web app that needs configuration steps before I can actually test my userscript's functionality. So every time I reload the page – to refresh my userscript from the updated file –, I have to reconfigure the web app before testing. Needless to say, this gets old very quickly. Is there a way to reload only the userscript , preferably from the userscript itself? I would want to e.g. bind the reload to a keyboard shortcut. I thought that this must be

How can I get Visual Studio to always reload changed solutions, projects and files?

微笑、不失礼 提交于 2019-12-23 06:50:54
问题 I'm using multiple machines to profile and run one solution, with data synchronization done via DropBox (brilliant, btw!). Unfortunately, changes in one machine cause all other machines' VS instances to ask me whether I want to reload which is... annoying, because the answer is always Yes . So my question is: can I get VS to assume that the answer is always Yes? 回答1: Go to Options -> Environment -> Documents Then check the boxes: "Detect when file is changed outside the environment" "Auto

Dynamically recompile and reload a class

泪湿孤枕 提交于 2019-12-11 10:14:55
问题 I'm building a server in java that can receive java source files, and it should dynamically compile it using JavaCompiler and then load the class. However the problem is that if the server receive a file with the same name but different content, it will still load the previous class and gave the same outputs. I've noticed some answers suggesting creating a superclass for the class I'm trying to load and using a different classLoader, but is it still the case if the java source file is

Re-loading remote drools guvnor resource at drools-camel-server

风流意气都作罢 提交于 2019-12-10 17:33:59
问题 I am using drools-camel-server 5.4 final to execute the rules fetched from guvnor on jboss AS7 as follows: <drools:resource type="PKG" source="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/mypackage/Test" basic-authentication="enabled" username="test" password="test" /> </drools:resources> <drools:ksession id="ksession1" type="stateless" kbase="kbase" node="node1" /> how can I reload or rebuild the knowledgebase so that any changes in the rules instantly get reflected

How to reload only a userscript, i.e. without reloading the page?

两盒软妹~` 提交于 2019-12-02 03:54:48
I'm working on a Greasemonkey userscript for a web app that needs configuration steps before I can actually test my userscript's functionality. So every time I reload the page – to refresh my userscript from the updated file –, I have to reconfigure the web app before testing. Needless to say, this gets old very quickly. Is there a way to reload only the userscript , preferably from the userscript itself? I would want to e.g. bind the reload to a keyboard shortcut. I thought that this must be a very common need, but I came up empty-handed when trying to find a solution. Ben Connor Hansell

Reload used classes at runtime Java

China☆狼群 提交于 2019-11-28 06:00:15
I'm working on a program that watches a directory and runs all tests in the directory when it sees changes in the directory. This requires the program to dynamically load the classes, instead of getting the cached copies. I can dynamically load the test classes. Changes to the tests get detected and used at runtime. However, this isn't the case for the classes tested by the tests. My code for dynamically loading the classes and returning a list of test classes: List<Class<?>> classes = new ArrayList<Class<?>>(); for (File file : classFiles) { String fullName = file.getPath(); String name =