/v3.2/nimbits-model/src/com/nimbits/client/model/common/CommonFactoryLocator.java

http://nimbits-server.googlecode.com/ · Java · 36 lines · 11 code · 7 blank · 18 comment · 1 complexity · b36897837279df0b11c4305f21cbbd34 MD5 · raw file

  1. /*
  2. * Copyright (c) 2010 Tonic Solutions LLC.
  3. *
  4. * http://www.nimbits.com
  5. *
  6. *
  7. * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
  8. *
  9. * http://www.gnu.org/licenses/gpl.html
  10. *
  11. * Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  12. */
  13. package com.nimbits.client.model.common;
  14. import com.nimbits.client.model.common.impl.CommonFactoryImpl;
  15. /**
  16. * Created by bsautner
  17. * User: benjamin
  18. * Date: 8/6/11
  19. * Time: 11:11 AM
  20. */
  21. public class CommonFactoryLocator {
  22. private static CommonFactory instance;
  23. public static CommonFactory getInstance() {
  24. if (instance==null) {
  25. instance = new CommonFactoryImpl();
  26. }
  27. return instance;
  28. }
  29. }