org.ow2.bonita.pvm.internal.spring
Class SpringEnvironment

java.lang.Object
  extended by org.ow2.bonita.pvm.env.Environment
      extended by org.ow2.bonita.pvm.internal.env.BasicEnvironment
          extended by org.ow2.bonita.pvm.internal.spring.SpringEnvironment
All Implemented Interfaces:
java.io.Serializable

public class SpringEnvironment
extends BasicEnvironment

sees the prototype beans in the application context and this environment will cache all the prototyped objects.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
 
Fields inherited from class org.ow2.bonita.pvm.internal.env.BasicEnvironment
classLoader, contexts, defaultSearchOrder, defaultSearchOrderList, exception, userId
 
Constructor Summary
SpringEnvironment(SpringEnvironmentFactory springEnvironmentFactory)
           
 
Method Summary
 void close()
          closes the Environment by removing all its contexts.
 java.lang.ClassLoader getClassLoader()
           
 EnvironmentFactory getEnvironmentFactory()
           
 java.lang.Throwable getException()
           
 java.lang.String getUserId()
          get the authenticated user id
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setException(java.lang.Throwable exception)
           
 void setUserId(java.lang.String userId)
          set the authenticated user id
 
Methods inherited from class org.ow2.bonita.pvm.internal.env.BasicEnvironment
addContext, get, get, get, get, getContext, getDefaultSearchOrder, getEnvironmentContext, getEnvironmentFactoryContext, removeContext
 
Methods inherited from class org.ow2.bonita.pvm.env.Environment
getCurrent, getFromCurrent, getFromCurrent, getFromCurrent, getFromCurrent, popEnvironment, pushEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected org.springframework.context.ApplicationContext applicationContext
Constructor Detail

SpringEnvironment

public SpringEnvironment(SpringEnvironmentFactory springEnvironmentFactory)
Method Detail

close

public void close()
Description copied from class: Environment
closes the Environment by removing all its contexts.

Overrides:
close in class BasicEnvironment

getClassLoader

public java.lang.ClassLoader getClassLoader()
Overrides:
getClassLoader in class BasicEnvironment

getEnvironmentFactory

public EnvironmentFactory getEnvironmentFactory()

getException

public java.lang.Throwable getException()

getUserId

public java.lang.String getUserId()
Description copied from class: Environment
get the authenticated user id

Overrides:
getUserId in class BasicEnvironment

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)
Overrides:
setClassLoader in class BasicEnvironment

setException

public void setException(java.lang.Throwable exception)

setUserId

public void setUserId(java.lang.String userId)
Description copied from class: Environment
set the authenticated user id

Overrides:
setUserId in class BasicEnvironment


Copyright © 2009 OW2 Consortium. All Rights Reserved.