Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere in the world is com.ibm.ws.scripting.adminCommand.AdminTask?
    primarykey
    data
    text
    <p>Frustrated with the damn awful API provided by WebSphere Admin Server, I'm writing my own Java DSL wrapper. My jython files now simply read:</p> <pre><code>from my.package import MyDSL config = MyDSL(AdminConfig, AdminTask) config.goGoGadgetSkates() # or something like that </code></pre> <p>The essential part is that I send through the (#%$$!@#) god objects <code>AdminConfig</code> and <code>AdminTask</code> so that the DSL can use them to perform operations in WAS.</p> <p>In order to compile the DSL I need to include the class files for this two objects. I find them by first setting the constructor as:</p> <pre><code>public MyDSL(Object a, Object b) { System.out.println(a.getClass()); System.out.println(b.getClass()); } </code></pre> <p>The output showed that the AdminConfig object is an instance of <code>com.ibm.ws.scripting.AdminConfigClient</code>. I easily located the jar that contains this class and all is well.</p> <p>But AdminTask is an instance of <code>com.ibm.ws.scripting.adminCommand.AdminTask</code>. Despite being present at runtime, this class does not exist anywhere in my classpath or indeed anywhere on my computer's hard drive.</p> <p>I can only assume <code>com.ibm.ws.scripting.adminCommand.AdminTask</code> is constructed magically by WSAdmin in the jython layer. Perhaps it is defined as a python class?</p> <p>Before I <a href="https://stackoverflow.com/questions/9595782/call-method-via-reflection-when-argument-is-of-type-object">resort to reflection</a>, can someone please explain where <code>com.ibm.ws.scripting.adminCommand.AdminTask</code> might live and how I might extract a copy of the class file?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload