com.sun.star.script.framework.provider.oorexx
Class ScriptProviderForooRexx
java.lang.Object
com.sun.star.script.framework.provider.oorexx.ScriptProviderForooRexx
public class ScriptProviderForooRexx
- extends java.lang.Object
Method Summary |
static com.sun.star.lang.XSingleServiceFactory |
__getServiceFactory(java.lang.String implName,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
Returns a factory for creating the service. |
static boolean |
__writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey)
Writes the service information into the given registry key. |
static org.apache.bsf.BSFManager |
getBSFManager()
|
static java.lang.String |
getSystemPathFromFileURL(com.sun.star.uno.XComponentContext xContext,
com.sun.star.script.framework.container.ScriptMetaData metaData)
Returns the fully qualified, operating system dependent path to the script, if it
is located in the 'user' or 'share' location. |
static java.lang.String |
makeFilenameLedgible(java.lang.String filename)
Removes curly brackets at the beginning of the string and an optionally trailing
'/ucb/' string and returns result. |
static void |
terminateBSFManager()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OOREXX_LANGUAGE
static final java.lang.String OOREXX_LANGUAGE
- See Also:
- Constant Field Values
OOREXX_BSFLANGUAGE
static final java.lang.String OOREXX_BSFLANGUAGE
- See Also:
- Constant Field Values
OOREXX_EXTENSION
static final java.lang.String OOREXX_EXTENSION
- See Also:
- Constant Field Values
OOREXX_BSFREGISTRY_PREFIX
static final java.lang.String OOREXX_BSFREGISTRY_PREFIX
- See Also:
- Constant Field Values
OOREXX_XSCRIPTCONTEXT_KEY
static final java.lang.String OOREXX_XSCRIPTCONTEXT_KEY
- See Also:
- Constant Field Values
OOREXX_VERSION_KEY
static final java.lang.String OOREXX_VERSION_KEY
- See Also:
- Constant Field Values
OOREXX_VERSION_VALUE
static final java.lang.String OOREXX_VERSION_VALUE
- See Also:
- Constant Field Values
OOREXX_FILENAME
static final java.lang.String OOREXX_FILENAME
- See Also:
- Constant Field Values
OOREXX_SCRIPTMETADATA
static final java.lang.String OOREXX_SCRIPTMETADATA
- See Also:
- Constant Field Values
OOREXX_SOURCE_MODEL
static final java.lang.String OOREXX_SOURCE_MODEL
- See Also:
- Constant Field Values
OOREXX_SCRIPT_PARAMS
static final java.lang.String OOREXX_SCRIPT_PARAMS
- See Also:
- Constant Field Values
OOREXX_SCRIPT_OUT_PARAMS_INDEX
static final java.lang.String OOREXX_SCRIPT_OUT_PARAMS_INDEX
- See Also:
- Constant Field Values
OOREXX_SCRIPT_OUT_PARAMS
static final java.lang.String OOREXX_SCRIPT_OUT_PARAMS
- See Also:
- Constant Field Values
bsfManager
protected static org.apache.bsf.BSFManager bsfManager
ScriptProviderForooRexx
public ScriptProviderForooRexx()
getBSFManager
public static org.apache.bsf.BSFManager getBSFManager()
throws org.apache.bsf.BSFException
- Throws:
org.apache.bsf.BSFException
terminateBSFManager
public static void terminateBSFManager()
makeFilenameLedgible
public static java.lang.String makeFilenameLedgible(java.lang.String filename)
- Removes curly brackets at the beginning of the string and an optionally trailing
'/ucb/' string and returns result.
- Returns:
- string that contains the shortened (URL) path with file name of the script/macro
getSystemPathFromFileURL
public static java.lang.String getSystemPathFromFileURL(com.sun.star.uno.XComponentContext xContext,
com.sun.star.script.framework.container.ScriptMetaData metaData)
- Returns the fully qualified, operating system dependent path to the script, if it
is located in the 'user' or 'share' location. Otherwise returns what
'makeFilenameLedgible(String fileName)' returns.
- Returns:
- string fully qualified, operating system dependent path to the script in the
'user' or 'share' location, otherwise a short form of the OOo URL-string
__getServiceFactory
public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(java.lang.String implName,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
- Returns a factory for creating the service.
This method is called by the
JavaLoader
- Parameters:
implName
- the name of the implementation for which a service is desiredmultiFactory
- the service manager to be used if neededregKey
- the registryKey
- Returns:
- returns a
XSingleServiceFactory
for creating
the component - See Also:
JavaLoader
__writeRegistryServiceInfo
public static boolean __writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey)
- Writes the service information into the given registry key.
This method is called by the
JavaLoader
- Parameters:
regKey
- the registryKey
- Returns:
- returns true if the operation succeeded
- See Also:
JavaLoader