diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java index 958a62987..e5cfb1840 100644 --- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java +++ b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/IProvisioningAgent.java @@ -75,6 +75,14 @@ public interface IProvisioningAgent { public Object getService(String serviceName); /** + * Returns the service with the given service name, or <code>null</code> + * if no such service is available in this agent. + * @exception IllegalStateException if this agent has been stopped + * @exception ClassCastException if the agent cannot be cast to the provided class + */ + public <T> T getService(Class<T> key); + + /** * Registers a service with this provisioning agent. * * @param serviceName The name of the service to register |