1. /*
  2. * @(#)PresentationDefaults.java 1.6 04/07/27
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.spi.presentation.rmi;
  8. import com.sun.corba.se.spi.orb.ORB;
  9. import com.sun.corba.se.spi.presentation.rmi.PresentationManager;
  10. import com.sun.corba.se.impl.presentation.rmi.StubFactoryFactoryProxyImpl;
  11. import com.sun.corba.se.impl.presentation.rmi.StubFactoryFactoryStaticImpl;
  12. import com.sun.corba.se.impl.presentation.rmi.StubFactoryStaticImpl;
  13. public abstract class PresentationDefaults
  14. {
  15. private static StubFactoryFactoryStaticImpl staticImpl = null ;
  16. private PresentationDefaults() {}
  17. public synchronized static PresentationManager.StubFactoryFactory
  18. getStaticStubFactoryFactory()
  19. {
  20. if (staticImpl == null)
  21. staticImpl = new StubFactoryFactoryStaticImpl( );
  22. return staticImpl ;
  23. }
  24. public static PresentationManager.StubFactoryFactory
  25. getProxyStubFactoryFactory()
  26. {
  27. return new StubFactoryFactoryProxyImpl();
  28. }
  29. public static PresentationManager.StubFactory makeStaticStubFactory(
  30. Class stubClass )
  31. {
  32. return new StubFactoryStaticImpl( stubClass ) ;
  33. }
  34. }