diff options
Diffstat (limited to 'smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java')
-rwxr-xr-x | smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java b/smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java index c08c719116ae..45168e800aa5 100755 --- a/smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java +++ b/smoketestoo_native/com/sun/star/comp/smoketest/TestExtension.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,7 +54,7 @@ public class TestExtension { */ static private final String __serviceName = "com.sun.star.comp.smoketest.TestExtension"; - + /** The initial component contextr, that gives access to * the service manager, supported singletons, ... * It's often later used @@ -65,7 +65,7 @@ public class TestExtension { * It's often later used */ private XMultiComponentFactory m_xMCF; - + /** The constructor of the inner class has a XMultiServiceFactory parameter. * @param xmultiservicefactoryInitialization A special service factory * could be introduced while initializing. @@ -73,13 +73,13 @@ public class TestExtension { public _TestExtension(XComponentContext xCompContext) { try { m_cmpCtx = xCompContext; - m_xMCF = m_cmpCtx.getServiceManager(); + m_xMCF = m_cmpCtx.getServiceManager(); } catch( Exception e ) { e.printStackTrace(); } } - + /** This method returns an array of all supported service names. * @return Array of supported service names. */ @@ -95,7 +95,7 @@ public class TestExtension { String[] sSupportedServiceNames = { __serviceName }; return sSupportedServiceNames; } - + /** This method returns true, if the given service will be * supported by the component. * @param sServiceName Service name. @@ -104,16 +104,16 @@ public class TestExtension { public boolean supportsService( String sServiceName ) { return sServiceName.equals( __serviceName ); } - + /** Return the class name of the component. * @return Class name of the component. */ public String getImplementationName() { return _TestExtension.class.getName(); - } + } } - - + + /** * Gives a factory for creating the service. * This method is called by the <code>JavaLoader</code> @@ -127,11 +127,11 @@ public class TestExtension { public static XSingleComponentFactory __getComponentFactory(String sImplName) { XSingleComponentFactory xFactory = null; - + if ( sImplName.equals( _TestExtension.class.getName() ) ) xFactory = Factory.createComponentFactory(_TestExtension.class, _TestExtension.getServiceNames()); - + return xFactory; } @@ -162,5 +162,5 @@ public class TestExtension { * your component using these objects. */ } - + } |