org.kuali.rice.core.framework.resourceloader
Class SimpleServiceLocator

java.lang.Object
  extended by org.kuali.rice.core.api.lifecycle.BaseLifecycle
      extended by org.kuali.rice.core.framework.resourceloader.SimpleServiceLocator
All Implemented Interfaces:
Lifecycle, ServiceLocator

public class SimpleServiceLocator
extends BaseLifecycle
implements ServiceLocator

A simple ServiceLocator that allows users to put services into workflow's resource loading wihout creating their own ServiceLocator.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
SimpleServiceLocator()
           
 
Method Summary
 void addService(QName name, Object service)
           
 String getContents(String indent, boolean servicePerLine)
           
 Object getService(QName qname)
          Fetches the service with the given name.
 void removeService(QName name)
           
 
Methods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStarted, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.lifecycle.Lifecycle
isStarted, start, stop
 

Constructor Detail

SimpleServiceLocator

public SimpleServiceLocator()
Method Detail

getContents

public String getContents(String indent,
                          boolean servicePerLine)
Specified by:
getContents in interface ServiceLocator

getService

public Object getService(QName qname)
Description copied from interface: ServiceLocator
Fetches the service with the given name.

Specified by:
getService in interface ServiceLocator

addService

public void addService(QName name,
                       Object service)

removeService

public void removeService(QName name)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.