LibreOffice Module odk (master) 1
Classes | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
com.sun.star.lib.loader.Loader Class Reference

This class can be used as a loader for application classes which use UNO. More...

Classes

class  CustomURLClassLoader
 A customized class loader which is used to load classes and resources from a search path of user-defined URLs. More...
 
class  Drain
 

Static Public Member Functions

static void main (String[] arguments) throws Exception
 The main method instantiates a customized class loader with the UNO jar files added to the search path and loads the application class, which is specified in the Main-Class attribute of the com/sun/star/lib/Loader.class entry of the manifest file or as first parameter in the argument list. More...
 
static synchronized ClassLoader getCustomLoader ()
 Gets the customized class loader with the UNO jar files added to the search path. More...
 

Private Member Functions

 Loader ()
 do not instantiate More...
 

Static Private Member Functions

static void addUrls (ArrayList< URL > urls, String data, String delimiter)
 
static void close (InputStream c)
 
static void callUnoinfo (String path, ArrayList< URL > urls)
 

Static Private Attributes

static ClassLoader m_Loader = null
 

Detailed Description

This class can be used as a loader for application classes which use UNO.

The Loader class detects a UNO installation on the system and adds the UNO jar files to the search path of a customized class loader, which is used for loading the application classes.

Definition at line 46 of file Loader.java.

Constructor & Destructor Documentation

◆ Loader()

com.sun.star.lib.loader.Loader.Loader ( )
inlineprivate

do not instantiate

Definition at line 53 of file Loader.java.

Member Function Documentation

◆ addUrls()

static void com.sun.star.lib.loader.Loader.addUrls ( ArrayList< URL >  urls,
String  data,
String  delimiter 
)
inlinestaticprivate

◆ callUnoinfo()

static void com.sun.star.lib.loader.Loader.callUnoinfo ( String  path,
ArrayList< URL >  urls 
)
inlinestaticprivate

◆ close()

static void com.sun.star.lib.loader.Loader.close ( InputStream  c)
inlinestaticprivate

Definition at line 202 of file Loader.java.

References Exception.

Referenced by com.sun.star.lib.loader.Loader.callUnoinfo().

◆ getCustomLoader()

static synchronized ClassLoader com.sun.star.lib.loader.Loader.getCustomLoader ( )
inlinestatic

Gets the customized class loader with the UNO jar files added to the search path.

Returns
the customized class loader

Definition at line 142 of file Loader.java.

References com.sun.star.lib.loader.Loader.addUrls(), com.sun.star.lib.loader.Loader.callUnoinfo(), File, com.sun.star.lib.loader.Loader.m_Loader, run(), String, System, and URL.

Referenced by com.sun.star.lib.loader.Loader.main().

◆ main()

static void com.sun.star.lib.loader.Loader.main ( String[]  arguments) throws Exception
inlinestatic

The main method instantiates a customized class loader with the UNO jar files added to the search path and loads the application class, which is specified in the Main-Class attribute of the com/sun/star/lib/Loader.class entry of the manifest file or as first parameter in the argument list.

Definition at line 62 of file Loader.java.

References args, Class, Exception, com.sun.star.lib.loader.Loader.getCustomLoader(), i, loader, m, Method, Object, String, System, and URL.

Member Data Documentation

◆ m_Loader

ClassLoader com.sun.star.lib.loader.Loader.m_Loader = null
staticprivate

Definition at line 48 of file Loader.java.

Referenced by com.sun.star.lib.loader.Loader.getCustomLoader().


The documentation for this class was generated from the following file: