| java.lang.Object org.apache.axis2.deployment.util.Utils
Utils | public class Utils (Code) | | |
Method Summary | |
public static void | addExcludeMethods(ArrayList excludeList) | public static void | addFlowHandlers(Flow flow, ClassLoader clsLoader) | public static ClassLoader | createClassLoader(URL[] urls, ClassLoader serviceClassLoader, boolean extractJars, File tmpDir) | public static File | createTempFile(String suffix, InputStream in, File tmpDir) | public static void | deployModuleServices(AxisModule module, ConfigurationContext configCtx) This method is to get the list of services there in a module
if module want to add services then the way of doing that is
1. | public static void | fillAxisService(AxisService axisService, AxisConfiguration axisConfig, ArrayList excludeOperations, ArrayList nonRpcMethods) | public static List | findLibJars(URL url) Searches for jar files inside /lib dirctory. | public static AxisOperation | getAxisOperationForJmethod(JMethod jmethod) | public static ClassLoader | getClassLoader(ClassLoader parent, String path) | public static ClassLoader | getClassLoader(ClassLoader parent, File file) Get a ClassLoader which contains a classpath of a) the passed directory and b) any jar
files inside the "lib/" or "Lib/" subdirectory of the passed directory. | public static OMElement | getParameter(String name, String value, boolean locked) | public static String | getPath(String parent, String childPath) | public static URL[] | getURLsForAllJars(URL url, File tmpDir) | public static void | loadHandler(ClassLoader loader1, HandlerDescription desc) | public static String | normalize(String uri) Normalize a uri containing ../ and ./ paths. | public static File | toFile(URL url) |
addExcludeMethods | public static void addExcludeMethods(ArrayList excludeList)(Code) | | To add the exclude method when generating scheams , here the exclude methods
will be session releated axis2 methods
|
deployModuleServices | public static void deployModuleServices(AxisModule module, ConfigurationContext configCtx) throws AxisFault(Code) | | This method is to get the list of services there in a module
if module want to add services then the way of doing that is
1. Add a directory called services inside the module (both in mar case and expanded case)
2. Then add a services.list file into that directory adding all the modules
you want to add
3. Then put all the services into services directory in the module
4. All the class is module can be access via a the module services.
|
fillAxisService | public static void fillAxisService(AxisService axisService, AxisConfiguration axisConfig, ArrayList excludeOperations, ArrayList nonRpcMethods) throws Exception(Code) | | This guy will create a AxisService using java reflection
Parameters: axisService - the target AxisService Parameters: axisConfig - the in-scope AxisConfiguration Parameters: excludeOperations - a List of Strings (or null), each containing a method to exclude Parameters: nonRpcMethods - a List of Strings (or null), each containing a non-rpc method name throws: Exception - if a problem occurs |
findLibJars | public static List findLibJars(URL url)(Code) | | Searches for jar files inside /lib dirctory. If there are any, the
names of those jar files will be added to the array list
|
getClassLoader | public static ClassLoader getClassLoader(ClassLoader parent, File file) throws DeploymentException(Code) | | Get a ClassLoader which contains a classpath of a) the passed directory and b) any jar
files inside the "lib/" or "Lib/" subdirectory of the passed directory.
Parameters: parent - parent ClassLoader which will be the parent of the result of this method Parameters: file - a File which must be a directory for this to be useful a new ClassLoader pointing to both the passed dir and jar files under lib/ throws: DeploymentException - if problems occur |
getParameter | public static OMElement getParameter(String name, String value, boolean locked)(Code) | | |
getURLsForAllJars | public static URL[] getURLsForAllJars(URL url, File tmpDir)(Code) | | |
normalize | public static String normalize(String uri)(Code) | | Normalize a uri containing ../ and ./ paths.
Parameters: uri - The uri path to normalize The normalized uri |
|
|