Rio Project 4.2 API Documentation
org.rioproject.core.jsb
Interface ServiceBeanFactory
- All Known Implementing Classes:
- BeanFactory, JSBLoader, SpringBeanFactory
public interface ServiceBeanFactory
The ServiceBeanFactory defines the semantics to create a service instance.
Implementations of this interface are responsible for the creation of a service
implementation and the proxy used to communicate to the created service.
- Author:
- Dennis Reedy
create
ServiceBeanFactory.Created create(ServiceBeanContext context)
throws JSBInstantiationException
- The create method is called to create the service implementation and to
create the proxy to communicate with the service. There is no requirement
to create a class loader, this method will be called with the context
class loader set to the class loader that can be used to load the
service. If needed, the class loader can be obtained by access the
thread's current context class loader.
Additionally:
- If the service has been configured with any shared resources, they
will have been loaded into the common class loader prior to the
invocation of this method.
- If any logger instances have been configured for the service,
specific loggers and handlers will have been configued prior to the
invocation of this method
- Parameters:
context - The ServiceBeanContext describing the service to
create
- Returns:
- The Created object
- Throws:
JSBInstantiationException - If there are errors creating the
service bean
Copyright © 2006-2011 Rio Project. All Rights Reserved.