spcp7.imagegallery.abstractionlayer.impl.internal
Class ContentProviderRegistrySingleton

java.lang.Object
  extended by spcp7.imagegallery.abstractionlayer.impl.internal.ContentProviderRegistrySingleton

public class ContentProviderRegistrySingleton
extends java.lang.Object

We need a place to start or Spring container. This can also be done via the WEB-INF/web.xml. We do not start vie web.xml because we would depend on the gui then. As the gui can be changed this would be bad. Instead we build a singleton which returns the ContentProviderRegistryFace which contains all functions needed.

Author:
Phillip Merensky

Method Summary
static org.springframework.context.ApplicationContext getApplicationContext()
           
static ContentProviderRegistryFace getContentProviderRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentProviderRegistry

public static ContentProviderRegistryFace getContentProviderRegistry()
Returns:
A ContentProviderRegistryFace instantiated by the Spring container.

getApplicationContext

public static org.springframework.context.ApplicationContext getApplicationContext()
Returns:
the spring applicationContext


Copyright © 2008. All Rights Reserved.