Package org.jboss.msc.service
Class ServiceActivatorContextImpl
- java.lang.Object
-
- org.jboss.msc.service.ServiceActivatorContextImpl
-
- All Implemented Interfaces:
ServiceActivatorContext
public final class ServiceActivatorContextImpl extends java.lang.Object implements ServiceActivatorContext
A simple service activator context implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private ServiceRegistryserviceRegistryprivate ServiceTargetserviceTarget
-
Constructor Summary
Constructors Constructor Description ServiceActivatorContextImpl(ServiceTarget serviceTarget, ServiceRegistry serviceRegistry)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceRegistrygetServiceRegistry()Get the service registry for this activation.ServiceTargetgetServiceTarget()Get the service target for this activation.
-
-
-
Field Detail
-
serviceTarget
private final ServiceTarget serviceTarget
-
serviceRegistry
private final ServiceRegistry serviceRegistry
-
-
Constructor Detail
-
ServiceActivatorContextImpl
public ServiceActivatorContextImpl(ServiceTarget serviceTarget, ServiceRegistry serviceRegistry)
Construct a new instance.- Parameters:
serviceTarget- the service targetserviceRegistry- the service registry
-
-
Method Detail
-
getServiceTarget
public ServiceTarget getServiceTarget()
Get the service target for this activation.- Specified by:
getServiceTargetin interfaceServiceActivatorContext- Returns:
- the service target
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
Get the service registry for this activation.- Specified by:
getServiceRegistryin interfaceServiceActivatorContext- Returns:
- the service registry
-
-