Component.getService

Overview | Methods | This Package | All Packages

Component.getService

Retrieves a service provided by the site.

Syntax

public synchronized Object getService( Class service )

Parameters

service

An interface that represents the service.

Return Value

Returns an object that implements the specified interface. If the site does not support this service, or if the component does not have a site, null is returned.