站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

InstanceContainer - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model22.impl.instance
Interface InstanceContainer


public interface InstanceContainer

A container for instances.

Version:
$Revision: 5449 $
Author:
Julien Viet

Method Summary
 Instance createInstance(java.lang.String id)
          Create a new instance
 void destroyInstance(java.lang.String id)
          Destroy the specified instance.
 Instance getInstance(java.lang.String id)
          Return a container object.
 java.util.Collection getInstances()
          Return all the instances known by the container.
 

Method Detail

getInstance

public Instance getInstance(java.lang.String id)
Return a container object.

Parameters:
id -

createInstance

public Instance createInstance(java.lang.String id)
                        throws DuplicateInstanceException
Create a new instance

Parameters:
id -
Returns:
the newly created instance
Throws:
DuplicateInstanceException

destroyInstance

public void destroyInstance(java.lang.String id)
                     throws NoSuchInstanceException
Destroy the specified instance.

Parameters:
id -
Throws:
NoSuchInstanceException

getInstances

public java.util.Collection getInstances()
Return all the instances known by the container.

Returns:
all the instances known by the container