Package com.sun.star.lang

Examples of com.sun.star.lang.XSingleComponentFactory


     * @param   sImplName the name of the implementation for which a
     *          service is desired
     * @see     com.sun.star.comp.loader.JavaLoader
     */
    public static XSingleComponentFactory __getComponentFactory(String sImplName) {
        XSingleComponentFactory xFactory = null;

        if (sImplName.equals(_HelpSearch.class.getName())) {
            xFactory = Factory.createComponentFactory(_HelpSearch.class,
                    _HelpSearch.getServiceNames());
        }
View Full Code Here


     *          service is desired
     * @see     com.sun.star.comp.loader.JavaLoader
     */
    public static XSingleComponentFactory __getComponentFactory(String sImplName)
    {
        XSingleComponentFactory xFactory = null;
   
        if ( sImplName.equals( _OptionsEventHandler.class.getName() ) )
            xFactory = Factory.createComponentFactory(_OptionsEventHandler.class,
                                             _OptionsEventHandler.getServiceNames());
       
View Full Code Here

     *          service is desired
     * @see     com.sun.star.comp.loader.JavaLoader
     */
    public static XSingleComponentFactory __getComponentFactory(String sImplName)
    {
        XSingleComponentFactory xFactory = null;
   
        if ( sImplName.equals( _TestExtension.class.getName() ) )
            xFactory = Factory.createComponentFactory(_TestExtension.class,
                                             _TestExtension.getServiceNames());
       
View Full Code Here

     *          service is desired
     * @see     com.sun.star.comp.loader.JavaLoader
     */
    public static XSingleComponentFactory __getComponentFactory(String sImplName)
    {
        XSingleComponentFactory xFactory = null;
   
        if ( sImplName.equals( _LocationTest.class.getName() ) )
            xFactory = Factory.createComponentFactory(_LocationTest.class,
                                             _LocationTest.getServiceNames());
       
View Full Code Here

     * @return returns a <code>XSingleComponentFactory</code> for creating the component
     * @see com.sun.star.comp.loader.JavaLoader
     */
    public static XSingleComponentFactory __getComponentFactory(final String sImplName)
    {
        XSingleComponentFactory xFactory = null;

        try
        {
            if ( sImplName.equals(_SOReportJobFactory.class.getName()) )
            {
View Full Code Here

                                            XImplementationLoader.class,
                                            factory.createInstanceWithContext(
                                                "com.sun.star.loader."
                                                + "SharedLibrary",
                                                context));
                                    XSingleComponentFactory factory2
                                        = (XSingleComponentFactory)
                                        UnoRuntime.queryInterface(
                                            XSingleComponentFactory.class,
                                            loader.activate(
                                                "com.sun.star.test.bridges."
                                                + "testequals.impl",
                                                "", "testequals.uno", null));
                                    XTestInterface test = (XTestInterface)
                                        UnoRuntime.queryInterface(
                                            XTestInterface.class,
                                            factory2.createInstanceWithContext(
                                                context));
                                    // allow client to start accepting:
                                    Thread.sleep(3000);
                                    test.connect(
                                        CONNECTION_DESCRIPTION,
View Full Code Here

    {
        m_xContext = context;
    }

    public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) {
        XSingleComponentFactory xFactory = null;

        if ( sImplementationName.equals( m_implementationName ) )
            xFactory = Factory.createComponentFactory(JQAddInImpl.class, m_serviceNames);
        return xFactory;
    }
View Full Code Here

        /* Use createInstanceWithArgumentsAndContext to  create the new class */
        System.out.println("initialize");

        if ( object.length > 0 ){
            try{
                XSingleComponentFactory scf = AddOn.__getComponentFactory("com.CompPad.AddOn");
                myAddOn = (AddOn) scf.createInstanceWithArgumentsAndContext(object, m_xContext);
            }
            catch (java.lang.Exception ex){
                Logger.getLogger(AddOnAdapter.class.getName()).log(Level.SEVERE, null, ex);
                System.out.println("**** ERROR INITIALIZING ADDON");
            }
View Full Code Here

    /* I think I need to implement my own factory for this addon, because otherwise
     * it keeps creating new instances of AddOn when it should just return
     * the same instance
     */
    public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) {
        XSingleComponentFactory xFactory = null;
        myLogger.log(
                    Level.FINE, "getComponentFactory s:"+sImplementationName+" m:"+m_implementationName);
        if ( sImplementationName.equals( m_implementationName ) ){
//            xFactory = Factory.createComponentFactory(AddOn.class, m_serviceNames);
//        return xFactory;
View Full Code Here

    {
        m_xContext = context;
    };

    public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) {
        XSingleComponentFactory xFactory = null;

        if ( sImplementationName.equals( m_implementationName ) )
            xFactory = Factory.createComponentFactory(GDocs.class, m_serviceNames);
        return xFactory;
    }
View Full Code Here

TOP

Related Classes of com.sun.star.lang.XSingleComponentFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.