/** * Returns a factory for creating the service. This method is called by the <code>JavaLoader * </code> * * <p> * * @return returns a <code>XSingleServiceFactory</code> for creating the component * @param implName the name of the implementation for which a service is desired * @param multiFactory the service manager to be used if needed * @param regKey the registryKey * @see com.sun.star.comp.loader.JavaLoader */ public static XSingleServiceFactory __getServiceFactory( String implName, XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey) { XSingleServiceFactory xSingleServiceFactory = null; if (implName.equals(JavaSampleChartAddIn.class.getName())) { xSingleServiceFactory = com.sun.star.comp.loader.FactoryHelper.getServiceFactory( JavaSampleChartAddIn.class, smServiceName, multiFactory, regKey); } return xSingleServiceFactory; }
/** * Returns a factory for creating the service. This method is called by the <code>JavaLoader * </code> * * <p> * * @param implName the name of the implementation for which a service is desired * @param multiFactory the service manager to be used if needed * @param regKey the registryKey * @return returns a <code>XSingleServiceFactory</code> for creating the component * @see com.sun.star.comp.loader.JavaLoader */ public static XSingleServiceFactory __getServiceFactory( String implName, XMultiServiceFactory multiFactory, XRegistryKey regKey) { XSingleServiceFactory xSingleServiceFactory = null; if (implName.equals(ScriptProviderForBeanShell.ScriptProviderForBeanShell_2.class.getName())) { xSingleServiceFactory = FactoryHelper.getServiceFactory( ScriptProviderForBeanShell.ScriptProviderForBeanShell_2.class, "com.sun.star.script.provider.ScriptProviderForBeanShell", multiFactory, regKey); } return xSingleServiceFactory; }