|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tubo.resource.baseimpl.BaseAbstractResourceManager org.tubo.resource.springimpl.SpringResourceManagerImpl
public class SpringResourceManagerImpl
Created: Dec 1, 2005 6:02:44 AM Last Modification Date: $Date: 2006-12-15 18:39:11 -0300 (Fri, 15 Dec 2006) $
Field Summary | |
---|---|
static java.lang.String |
BEAN_COMPONENT_TEMPLATE
Template file for beans based on components |
static java.lang.String |
BEAN_CONSUMER_TEMPLATE
Template file for beans based on consumers |
static java.lang.String |
BEAN_DEFAULT_TEMPLATE
Template file for beans based on flows |
static java.lang.String |
BEAN_EXCEPTION_MANAGER_TEMPLATE
Template file for beans based on exceptions |
static java.lang.String |
BEAN_EXCEPTION_TEMPLATE
Template file for beans based on exceptions |
static java.lang.String |
BEAN_FLOW_TEMPLATE
Template file for beans based on flows |
static java.lang.String |
RCS_ID
|
static java.lang.String |
SPRING_CONTEXT_HEADFILE
Header for every spring xml context file |
static java.lang.String |
SPRING_EVENT_BEAN_ID
Event bean ID |
static java.lang.String |
SPRING_EXCEPTION_MANAGER_BEAN_ID
ExceptionManager bean ID |
static java.lang.String |
SPRING_FLOW_CONTEXT_BEAN_ID
FlowContext bean ID |
static java.lang.String |
SPRING_FLOW_EXECUTOR_BEAN_ID
FlowExecutor bean ID |
static java.lang.String |
SPRING_ITEM_BEAN_ID
Item bean ID |
static java.lang.String |
SPRING_KERNEL_BEAN_ID
Kernel bean ID |
static java.lang.String |
SPRING_RESOURCE_MANAGER_BEAN_ID
ResourceManager bean ID |
Constructor Summary | |
---|---|
protected |
SpringResourceManagerImpl()
Default constructor protected. |
Method Summary | |
---|---|
protected static java.lang.StringBuffer |
appendSpringDefaultConfiguration(java.lang.StringBuffer buffer,
Configuration config)
|
protected static java.lang.StringBuffer |
appendSpringDefinition(java.lang.StringBuffer buffer,
Definition def)
|
protected static java.lang.StringBuffer |
appendSpringDefinition(java.lang.StringBuffer buffer,
Definition def,
java.lang.String templateFile,
java.util.Map props)
Append a Spring configuration of ComponentDef instance. |
protected static java.lang.StringBuffer |
appendSpringExceptionManagerDefinition(java.lang.StringBuffer buffer)
|
protected static java.lang.StringBuffer |
appendSpringFlowDefinition(java.lang.StringBuffer buffer,
Configuration config)
|
protected static java.lang.String |
createSpringContext(Configuration config)
Create a Spring Context (Spring configuration) based on Configuration object. |
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
|
ExceptionManager |
getExceptionManager()
Get exception manager |
FlowExecutor |
getFlowExecutor()
Get flow processor manager |
Kernel |
getKernel()
Get kernel instance |
Manager |
getManager(java.lang.String id)
get a bean manager from spring |
Event |
getNewEvent()
Create a new Item instance |
FlowContext |
getNewFlowContext()
Create a new FlowContext instance |
Item |
getNewItem()
Create a new Item instance |
static SpringResourceManagerImpl |
newInstance(Configuration config)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
Methods inherited from class org.tubo.resource.baseimpl.BaseAbstractResourceManager |
---|
getComponentManager, getConfiguration, getConsumerManager, getConsumerManagers, setConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
public static final java.lang.String BEAN_EXCEPTION_MANAGER_TEMPLATE
public static final java.lang.String BEAN_EXCEPTION_TEMPLATE
public static final java.lang.String BEAN_CONSUMER_TEMPLATE
public static final java.lang.String BEAN_COMPONENT_TEMPLATE
public static final java.lang.String BEAN_DEFAULT_TEMPLATE
public static final java.lang.String BEAN_FLOW_TEMPLATE
public static final java.lang.String SPRING_CONTEXT_HEADFILE
public static final java.lang.String SPRING_KERNEL_BEAN_ID
public static final java.lang.String SPRING_RESOURCE_MANAGER_BEAN_ID
public static final java.lang.String SPRING_ITEM_BEAN_ID
public static final java.lang.String SPRING_EVENT_BEAN_ID
public static final java.lang.String SPRING_FLOW_CONTEXT_BEAN_ID
public static final java.lang.String SPRING_EXCEPTION_MANAGER_BEAN_ID
public static final java.lang.String SPRING_FLOW_EXECUTOR_BEAN_ID
Constructor Detail |
---|
protected SpringResourceManagerImpl() throws TuboException
TuboResourceException
TuboException
Method Detail |
---|
public org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
public Kernel getKernel() throws TuboException
Get kernel instance
getKernel
in interface ResourceManager
TuboException
public Item getNewItem() throws TuboException
Create a new Item instance
getNewItem
in interface ResourceManager
TuboException
public Event getNewEvent() throws TuboException
Create a new Item instance
getNewEvent
in interface ResourceManager
TuboException
public FlowContext getNewFlowContext() throws TuboException
Create a new FlowContext instance
getNewFlowContext
in interface ResourceManager
TuboException
public ExceptionManager getExceptionManager() throws TuboException
ResourceManager
getExceptionManager
in interface ResourceManager
TuboException
public FlowExecutor getFlowExecutor() throws TuboException
ResourceManager
getFlowExecutor
in interface ResourceManager
TuboException
public Manager getManager(java.lang.String id) throws TuboException
getManager
in interface ResourceManager
id
-
TuboException
public static SpringResourceManagerImpl newInstance(Configuration config)
protected static java.lang.String createSpringContext(Configuration config) throws TuboResourceException
config
- Configuration
TuboResourceException
protected static java.lang.StringBuffer appendSpringDefaultConfiguration(java.lang.StringBuffer buffer, Configuration config) throws TuboResourceException
TuboResourceException
protected static java.lang.StringBuffer appendSpringFlowDefinition(java.lang.StringBuffer buffer, Configuration config) throws TuboResourceException
TuboResourceException
protected static java.lang.StringBuffer appendSpringExceptionManagerDefinition(java.lang.StringBuffer buffer) throws TuboResourceException
TuboResourceException
protected static java.lang.StringBuffer appendSpringDefinition(java.lang.StringBuffer buffer, Definition def) throws TuboResourceException
TuboResourceException
protected static java.lang.StringBuffer appendSpringDefinition(java.lang.StringBuffer buffer, Definition def, java.lang.String templateFile, java.util.Map props) throws TuboResourceException
buffer
- Spring configurationdef
- A ComponentDef instance
TuboResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |