com.citytechinc.aem.bedrock.api.services
Interface ServiceProvider


public interface ServiceProvider

OSGi service provider.


Method Summary
<T> T
getService(Class<T> serviceType)
          Get an OSGi service.
<T> List<T>
getServices(Class<T> serviceType, String filter)
          Get one or more OSGi services.
 

Method Detail

getService

<T> T getService(Class<T> serviceType)
Get an OSGi service.

Type Parameters:
T - type
Parameters:
serviceType - the type (class) of the service
Returns:
the service instance, or null if it is not available

getServices

<T> List<T> getServices(Class<T> serviceType,
                        String filter)
Get one or more OSGi services.

Type Parameters:
T - type
Parameters:
serviceType - the type (class) of the service
filter - optional filter, see OSGi spec for syntax details
Returns:
one or more service instances, or null if none are found


Copyright © 2015 CITYTECH, Inc.. All rights reserved.