IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
JavaScriptï¼Java SE 6ï¼ãç¨ããå®è£ ãJavaScriptã§å®ç¾©ãããªãã¸ã§ã¯ããJSR223ã§å®ç¾©ããã¦ããAPIãç¨ãã¦Javaã®ã³ã¼ãå´ã§åå¾ãå®è¡ãã¾ããå®è¡ã¯ã©ã¹ã®ä½æããdi.jsããã¡ã¤ã«ã«TestContainerã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£ ããå®ç¾©ãè¨è¿°ããã¦ãããã®ã¨ãã¦å®è¡ã¯ã©ã¹ãä½æãã¾ãã import java.io.*; import javax.script.*; public class AppMainJs { public static void main(String[] args) { ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByExtension("js"); try {
ã¯ããã«ãDIã³ã³ããã®ãªãã¸ã§ã¯ãä¾åæ§ã®æ³¨å ¥å®ç¾©ã«ã¯ãXMLãã¼ã¹ã®è¨å®ãã¡ã¤ã«ãç¨ãããã¨ã主æµã§ãããããã¼ã«ç¡ãã§ã¯è¦èªæ§ãæªãããè¨è¿°ãé¢åãã¨ãã£ã使ãã«ããããããã¾ãæ軽ã§ã¯ãªãã¨æããæãããã¾ãããããã§ããå¤æ´å®¹æãªå¤é¨ãã¡ã¤ã«ã§DIã®å®ç¾©ãè¡ããã¨ããåæã§ããã£ã¨æ軽ã«ä½¿ããæ段ã¨ãã¦ã¹ã¯ãªããè¨èªãå©ç¨ããäºãèãã¦ã¿ã¾ããããå®è£ æ段ã¨ãã¦ãJava SEã®æ¬¡æãã¼ã¸ã§ã³Java SE 6ã§æ¡ç¨äºå®ã®JSR223ï¼Scripting for the Java Platformï¼ä»æ§ãç¨ããå ´åã¨ãç¾J2SE 5.0ã§å®ç¾ããå ´åã®2éããèããäºã¨ãã以ä¸ã®ã¹ã¯ãªããè¨èªãæ¡ç¨ãã¾ãããJavaScriptï¼Java SE 6ç°å¢ï¼Groovyï¼J2SE 5.0ç°å¢ï¼ å¿ è¦ãªç°å¢Java SE 6 ããããã¯J2SE 5.0Groovy 1.0 jsr05
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}