Rio Project 4.2 API Documentation
org.rioproject.bean
Class BeanFactory
java.lang.Object
org.rioproject.bean.BeanFactory
- All Implemented Interfaces:
- ServiceBeanFactory
- Direct Known Subclasses:
- SpringBeanFactory
public class BeanFactory
- extends Object
- implements ServiceBeanFactory
Instantiates a Plain Old Java Object (POJO), providing support for
remote invocations and administration by adapting the POJO into the
framework using the BeanAdapter class
- Author:
- Dennis Reedy
- See Also:
ServiceBeanFactory,
BeanAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanFactory
public BeanFactory()
create
public ServiceBeanFactory.Created create(ServiceBeanContext context)
throws JSBInstantiationException
- Creates the bean and the
BeanAdapter
which will handle dynamic remoting and proxy delegation.
- Specified by:
create in interface ServiceBeanFactory
- Parameters:
context - The ServiceBeanContext describing the service to
create
- Returns:
- The Created object
- Throws:
JSBInstantiationException - If there are errors creating the
service bean- See Also:
ServiceBeanFactory.create(org.rioproject.core.jsb.ServiceBeanContext)
getPlatformDLJars
protected String[] getPlatformDLJars(Configuration config)
throws ConfigurationException
- Get the jar names which should be part of the codebase.
- Parameters:
config - The configuration to use hen loading the
org.rioproject.bean.platformDLJars property
- Returns:
- A String array of platform jars, defaulting to rio-dl.jar
- Throws:
ConfigurationException - If there are exceptions accessing the
property
getBean
protected Object getBean(ServiceBeanContext context)
throws Exception
- Get the bean object.
- Parameters:
context - The context used to obtain details on what to load
- Returns:
- The loaded bean
- Throws:
Exception - If there are errors loading the bean
Copyright © 2006-2011 Rio Project. All Rights Reserved.