# com.bea.campaign
ServiceLocator Interface

public interface ServiceLocator

A helper interface for an object which can locate services.

This will be used by the ScenarioService to tell Actions where to find services to perform the actions. The common service names will be:

- CampaignService
- ScenarioService
- AdService
- AdBucketService
- MailService
- DiscountAssociationMgr (commerce server only)
- RulesManager
- EventService

Other service names can be configured in the ScenarioService's deployment descriptor.

All Known Subinterfaces
  `ScenarioService`

## Method Summary

`public `Object`` | `locateService`(`String` name, `Class` cl) Locate a service with the specified name.

## Method Detail

### locateService(String, Class) Method

    public Object locateService(String name,
                                Class cl)
         throws RemoteException

Locate a service with the specified name.

#### Parameters

name
  the service name.

cl
  the class the service must implement (null for any).

#### Returns

the service on success, null on any sort of failure.

#### Exceptions

``RemoteException``