org.apache.xbean.kernel.standard
Class StandardServiceContext

java.lang.Object
  extended byorg.apache.xbean.kernel.standard.StandardServiceContext
All Implemented Interfaces:
ServiceContext

public class StandardServiceContext
extends java.lang.Object
implements ServiceContext

The standard service context implementation. This is passed to the service factory in the ServiceFactory.createService(ServiceContext) and ServiceFactory.destroyService(ServiceContext) methods.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Constructor Summary
StandardServiceContext(Kernel kernel, ServiceName serviceName, java.lang.ClassLoader classLoader)
          Creates the standard service context implementation.
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Gets the class loader for this service.
 Kernel getKernel()
          Gets the kernel in which this service is registered.
 ServiceName getServiceName()
          Gets the unique name of the service in the kernel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardServiceContext

public StandardServiceContext(Kernel kernel,
                              ServiceName serviceName,
                              java.lang.ClassLoader classLoader)
Creates the standard service context implementation.

Parameters:
kernel - the kernel in which the service is registered
serviceName - the name of the service
classLoader - the class loader for the service
Method Detail

getKernel

public Kernel getKernel()
Gets the kernel in which this service is registered.

Specified by:
getKernel in interface ServiceContext
Returns:
the kernel in which this service is registered

getServiceName

public ServiceName getServiceName()
Gets the unique name of the service in the kernel.

Specified by:
getServiceName in interface ServiceContext
Returns:
the unique name of this service in the kernel

getClassLoader

public java.lang.ClassLoader getClassLoader()
Gets the class loader for this service.

Specified by:
getClassLoader in interface ServiceContext
Returns:
the class loader for this service


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.