JavaLoader class provides the functionality of the
com.sun.star.loader.Java service.
Therefore the JavaLoader activates external UNO components
which are implemented in Java.
The loader is used by the ServiceManager.
com.sun.star.loader.XImplementationLoader , com.sun.star.loader.Java , com.sun.star.comp.servicemanager.ServiceManager
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final String | |
| private com. | |
| protected com. | |
| private static String[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JavaLoader(com.
the factoryServiceManager.Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the factory for the componentcom.the implementation (class) name of the component. implementationName, String the URL of the implementation loader. Not used. implementationLoaderUrl, String points to an archive (JAR file) which contains a component. locationUrl, com.registry key. xKeyProvides a components factory. |
| private static final void | |
| private String | |
| public String | Returns: the implementation name - here the class name.Supplies the implementation name of the component. |
| public static com. | Returns: the factory for theJavaLoader.the name of the desired component. implName, com.the multiFactory,ServiceManager is delivered to the factory.not used - can be null. regKeySupplies the factory for the |
| public String[] | Returns: a String array with all supported services.Supplies a list of all service names supported by the component. |
| public void | initialize(Object[]
- the first parameter (args[0]) specifies the args)ServiceManager.Unlike the original intention, the method could be called every time a
new |
| public boolean | Returns: true,if service is supported - otherwise false.the name of the service that should be checked. serviceName)Verifies if a given service is supported by the component. |
| public boolean | Returns: true if registration is successfully - otherwise false.the root key under that the component should be registered. regKey,specifies the loader, the component is loaded by. implementationLoaderUrl, String points to an archive (JAR file) which contains a component. locationUrl)Registers the component in a registry under a given root key. |
| public static boolean | Returns: true if registration succeeded - otherwise false.root key under which the regKeyJavaLoader should be registered.Registers the |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| EXPAND_PROTOCOL_PREFIX | back to summary |
|---|---|
| private static final String EXPAND_PROTOCOL_PREFIX | |
| m_xMacroExpander | back to summary |
|---|---|
| private com. | |
| multiServiceFactory | back to summary |
|---|---|
| protected com. | |
| supportedServices | back to summary |
|---|---|
| private static String[] supportedServices | |
| JavaLoader | back to summary |
|---|---|
| public JavaLoader() Default constructor. Creates a new instance of the | |
| JavaLoader | back to summary |
|---|---|
| public JavaLoader(com. Creates a new The specified To set the
| |
| activate | back to summary |
|---|---|
| public Object activate(String implementationName, String implementationLoaderUrl, String locationUrl, com. Provides a components factory. The To get the factory the inspects the class for the optional static member functions __getServiceFactory resp. getServiceFactory (DEPRECATED).
| |
| DEBUG | back to summary |
|---|---|
| private static final void DEBUG(String dbg) | |
| expand_url | back to summary |
|---|---|
| private String expand_url(String url) throws RuntimeException Expands macrofied url using the macro expander singleton. | |
| getImplementationName | back to summary |
|---|---|
| public String getImplementationName() throws com.sun.star.uno.RuntimeException Supplies the implementation name of the component.
| |
| getServiceFactory | back to summary |
|---|---|
| public static com. Supplies the factory for the
| |
| getSupportedServiceNames | back to summary |
|---|---|
| public String[] getSupportedServiceNames() throws com.sun.star.uno.RuntimeException Supplies a list of all service names supported by the component.
| |
| initialize | back to summary |
|---|---|
| public void initialize(Object[] args) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException Unlike the original intention, the method could be called every time a
new
| |
| supportsService | back to summary |
|---|---|
| public boolean supportsService(String serviceName) throws com.sun.star.uno.RuntimeException Verifies if a given service is supported by the component.
| |
| writeRegistryInfo | back to summary |
|---|---|
| public boolean writeRegistryInfo(com. Registers the component in a registry under a given root key. If the component supports the optional methods __writeRegistryServiceInfo, writeRegistryServiceInfo (DEPRECATED), the call is delegated to that method. Otherwise a default registration will be accomplished.
| |
| writeRegistryServiceInfo | back to summary |
|---|---|
| public static boolean writeRegistryServiceInfo(com. Registers the
| |