org.eclipse.ecf.provider.xmpp.container
Class SecureContainerInstantiator

java.lang.Object
  extended by org.eclipse.ecf.provider.xmpp.container.ContainerInstantiator
      extended by org.eclipse.ecf.provider.xmpp.container.SecureContainerInstantiator
All Implemented Interfaces:
IContainerInstantiator

public class SecureContainerInstantiator
extends ContainerInstantiator


Constructor Summary
SecureContainerInstantiator()
           
 
Method Summary
 IContainer createInstance(ContainerTypeDescription description, java.lang.Class[] argTypes, java.lang.Object[] args)
          Create instance of IContainer.
 
Methods inherited from class org.eclipse.ecf.provider.xmpp.container.ContainerInstantiator
getIDFromArg, getIntegerFromArg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureContainerInstantiator

public SecureContainerInstantiator()
Method Detail

createInstance

public IContainer createInstance(ContainerTypeDescription description,
                                 java.lang.Class[] argTypes,
                                 java.lang.Object[] args)
                          throws ContainerCreateException
Description copied from interface: IContainerInstantiator
Create instance of IContainer. This is the interface that container provider implementations must implement for the containerFactory extension point. The caller may optionally specify both argument types and arguments that will be passed into this method (and therefore to the provider implementation implementing this method). For example:

ContainerFactory.getDefault().createContainer("foocontainer",new String [] { java.lang.String }, new Object { "hello" });

Specified by:
createInstance in interface IContainerInstantiator
Overrides:
createInstance in class ContainerInstantiator
Parameters:
description - the ContainerTypeDescription associated with the registered container provider implementation
argTypes - the argument types specified by the caller. May be null if no arguments are passed in by caller to ContainerFactory.getDefault().createContainer(...)
args - arguments specified by the caller. May be null if no arguments are passed in by caller to ContainerFactory.getDefault().createContainer(...)
Returns:
IContainer instance. The provider implementation must return a valid object implementing IContainer OR throw a ContainerCreateException. Null may not be returned.
Throws:
ContainerCreateException