org.mule.impl.container
Class RmiContainerContext

java.lang.Object
  extended by org.mule.impl.container.AbstractContainerContext
      extended by org.mule.impl.container.JndiContainerContext
          extended by org.mule.impl.container.RmiContainerContext
All Implemented Interfaces:
Disposable, Initialisable, UMOContainerContext
Direct Known Subclasses:
EjbContainerContext

public class RmiContainerContext
extends JndiContainerContext

RmiContainerContext is a container implementaiton that allows RMi objects to be referenced either as components or properties on components


Field Summary
protected  String securityManager
           
protected  String securityPolicy
           
 
Fields inherited from class org.mule.impl.container.JndiContainerContext
context
 
Fields inherited from class org.mule.impl.container.AbstractContainerContext
logger
 
Constructor Summary
  RmiContainerContext()
           
protected RmiContainerContext(String name)
           
 
Method Summary
 Object getComponent(Object key)
          Queries a component from the underlying container
 String getSecurityManager()
           
 String getSecurityPolicy()
           
 void initialise()
          Method used to perform any initialisation work.
 void setSecurityManager(String securityManager)
           
 void setSecurityPolicy(String securityPolicy)
           
 
Methods inherited from class org.mule.impl.container.JndiContainerContext
configure, getContext, getEnvironment, setContext, setEnvironment
 
Methods inherited from class org.mule.impl.container.AbstractContainerContext
configure, dispose, getDefaultDocType, getDefaultEncoding, getName, getXmlDeclaration, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityPolicy

protected String securityPolicy

securityManager

protected String securityManager
Constructor Detail

RmiContainerContext

protected RmiContainerContext(String name)

RmiContainerContext

public RmiContainerContext()
Method Detail

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Overrides:
initialise in class JndiContainerContext
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

getComponent

public Object getComponent(Object key)
                    throws ObjectNotFoundException
Description copied from interface: UMOContainerContext
Queries a component from the underlying container

Specified by:
getComponent in interface UMOContainerContext
Overrides:
getComponent in class JndiContainerContext
Parameters:
key - the key fo find the component with. Its up to the individual implementation to check the type of this key and look up objects accordingly
Returns:
The component found in the container
Throws:
ObjectNotFoundException - if the component is not found

getSecurityPolicy

public String getSecurityPolicy()

setSecurityPolicy

public void setSecurityPolicy(String securityPolicy)

getSecurityManager

public String getSecurityManager()

setSecurityManager

public void setSecurityManager(String securityManager)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.