| Home >> All >> org >> apache >> ws >> jaxme >> [ js Javadoc ] |
| | org.apache.ws.jaxme.js.apps.* (3) | | org.apache.ws.jaxme.js.impl.* (2) | | org.apache.ws.jaxme.js.junit.* (6) |
| | org.apache.ws.jaxme.js.pattern.* (10) | | org.apache.ws.jaxme.js.util.* (3) |
org.apache.ws.jaxme.js: Javadoc index of package org.apache.ws.jaxme.js.
Package Samples:
org.apache.ws.jaxme.js.util: This package contains the JaxMeJS java source generation framework.
org.apache.ws.jaxme.js.impl
org.apache.ws.jaxme.js.junit
org.apache.ws.jaxme.js.pattern
org.apache.ws.jaxme.js.apps
Classes:
JavaSourceFactory: Factory for generating JavaSource objects. The factory properties: setOverwriteForced(boolean) 55 setSettingReadOnly(boolean) 55 are used for finely grained controlled over the generated source files. Methods are provided to access abstract descriptions of the files to be created: getTextFiles() 55 and getTextFile(java.lang.String, java.lang.String) 55 getJavaSources() 55 and getJavaSource(org.apache.ws.jaxme.js.JavaQName) 55 Concrete files (source and otherwise) are created by calling the following construction methods: newJavaSource(JavaQName) 55 , newJavaSource(JavaQName, String) 55 and newJavaSource(JavaQName, ...
DirectAccessible: This interface is an abstract base for fields and similar objects. It doesn't define many methods, it mainly indicates, that the implementations value is directly and fast accessible in the generated code. The use is best demonstrated by an example. Suggest the following piece of code: Object value; return new Object[]{"((", value, ") * (", value, "))"}; The example is well suited for the case, where value is a variable name like "i". It is not suited, if "value" contains an expensive method call like "sin(x)". It is even wrong in the case "i++". By using the interface DirectAccessible , you can ...
MultipleInheritanceTest: This example demonstrates implementation of multiple inheritance with the ProxyGenerator. The class MyObservableList, an extension of MultipleInheritanceTest.MyObservableList , is a subclass of java.util.Observable , but can also be viewed as a subclass of java.util.ArrayList (or whatever implementation of MultipleInheritanceTest.MyObservableList you choose in the constructor. The Observers are notified whenever an object is added to the list.
ProxyGenerator: This class is a generator for the proxy object pattern. A proxy object performs the same task as an object created by the java.lang.reflect.Proxy class: It delegates its method calls to an internal instance. In the case of java.lang.reflect.Proxy this works by invoking a so-called java.lang.reflect.InvocationHandler . The InvocationHandler calls the actual object via Java reflection. In our case, the proxy object is an instance of a generated class. The main advantage of the generated approach is that you can customize the proxy class quite easily by overwriting it. Compared to the creation of ...
VersionGenerator: The VersionGenerator is able to clone a version of a row in a database. That is nothing special. A simple INSERT does the same. The difference is that the VersionGenerator is able to clone rows in other tables referencing the cloned table as well, updating the references, and clone and update rows referencing these cloned and updated rows, and so on. In other words: The VersionGenerator derives a new version of a complex object stored in the database. The VersionGenerator operates on a list of tables. This list must not contain forward or self references. In other words: Under no circumstances ...
InterfaceDescription: The InterfaceDescription is used by the ProxyGenerator as information storage about the interfaces being implemented. The main purporse of an intermediate class is to encapsulate the way, how information about these classes is gathered: If the interface being implemented is a compiled class, then Java reflection is used. Otherwise, if the interface being implemented is present as a Java source file, then the org.apache.ws.jaxme.js.util.JavaParser is used. </ol
TypesafeEnumerationTest: This example demonstrates implementation of multiple inheritance with the ProxyGenerator. The class MyObservableList, an extension of org.apache.ws.jaxme.js.junit.ObservableList , is a subclass of java.util.Observable , but can also be viewed as a subclass of java.util.ArrayList (or whatever implementation of java.util.List you choose in the constructor. The Observers are notified whenever an object is added to the list.
XmlRpcClientGenerator: This class generates clients for Apache XML-RPC. The basic idea goes as follows: Provide a class implementing the interface XmlRpcCaller . Provide a server side class being called via XML-RPC. The class must have a public default constructor, should be stateless, and all callable methods must be public instance methods. Run the generator, specifying a target package. On the client, use the generated class, as if it were the server side class.
ChainGenerator: This class generates so-called event chains. A chain is an interface and an object implementing the interface. Internally the implementation is using a list of chained objects, which you can assume to implement the same interface. Any event is passed to the first object in the list. The object may decide to resolve the event immediately and return. It may also call pass the event to the next object, take the returned value, possibly modify it and return the result. Finally, the chained object may decide to emit another event (which is passed along the same chain), and use the returned value.
JavaSourceResolver: Attempts to find a given instance of org.apache.ws.jaxme.js.JavaSource . This is used, for example, in the following case: A generator would like to know all methods of a given class. The class is derived from another class. The super classes methods should be treated, as if they were usual methods.
IndentedObject: Interface of an object which is able to write itself into a given IndentationTarget . using methods of the given IndentationEngine .
PlaceHolder: Interface of a placeholder. A placeholder is used by one method to note, that another method should insert code "here". A placeholder is created by invoking IndentationEngine.newPlaceHolder(String, boolean) 55 .
Parameter: A parameter, as used by JavaMethod , or JavaConstructor .
LocalJavaField: Interface of a JavaField , which is local to a JavaMethod .
TypesafeEnumerationGenerator: This class is a generator for the typesafe enumeration pattern. It creates a class that contains only a few, specified instances. Other instances cannot be created. Any instance has a name and a value. The name
XmlRpcCaller: Interface being implemented by the actual XML-RPC caller. The main purpose of delegating this to an interface, is the separation between generated classes and things like authentication, server location, and so on.
JavaParser: The JavaParser is a utility class, that reads Java sources and converts them into instances of org.apache.ws.jaxme.js.JavaSource .
MethodKey: This class is a key for generated methods. The main purpose is to determine, whether some method is present in more than one interface. In that case we have to ensure, that it is generated only once.
Reflector: The Reflector obtains informations on a certain class by converting it into an instance of org.apache.ws.jaxme.js.JavaSource .
JavaQName: A qualified class name, including package name. Instances of JavaQName are obtained by invoking private methods of the class JavaQNameImpl.
XmlRpcClientTest: A unit test for the org.apache.ws.jaxme.js.apps.XmlRpcClientGenerator .
| Home | Contact Us | Privacy Policy | Terms of Service |