eXo Kernel :: Container 2.5.0-GA

org.exoplatform.container.spi
Interface ComponentAdapterFactory

All Known Implementing Classes:
ManageableComponentAdapterFactory

public interface ComponentAdapterFactory

A component adapter factory is responsible for creating component adapters. explicitly.

Version:
$Id$
Author:
Nicolas Filotto

Method Summary
<T> ComponentAdapter<T>
createComponentAdapter(Object componentKey, Class<T> componentImplementation)
          Create a new component adapter based on the specified arguments.
 

Method Detail

createComponentAdapter

<T> ComponentAdapter<T> createComponentAdapter(Object componentKey,
                                               Class<T> componentImplementation)
                                           throws ContainerException
Create a new component adapter based on the specified arguments.

Parameters:
componentKey - the key to be associated with this adapter. This value should be returned from a call to ComponentAdapter.getComponentKey() on the created adapter.
componentImplementation - the implementation class to be associated with this adapter. This value should be returned from a call to ComponentAdapter.getComponentImplementation() on the created adapter. Should not be null.
Returns:
a new component adapter based on the specified arguments. Should not return null.
Throws:
ContainerException - if the creation of the component adapter results in a ContainerException.

eXo Kernel :: Container 2.5.0-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.