org.ow2.frascati.tinfi.api.control
Interface SCAContentController


public interface SCAContentController

Content control interface for SCA primitive components.

Author:
Lionel Seinturier

Field Summary
static java.lang.String NAME
          NAME of the content controller.
 
Method Summary
 java.lang.Object getFcContent()
          Return the current content instance.
 java.lang.Class<?> getFcContentClass()
          Return the content class associated with this component.
 void setFcContent(java.lang.Object content)
          For composite-scoped components, specify the content instance to be used.
 void setFcContentClass(java.lang.Class<?> c)
          Declare the content class associated with this component.
 

Field Detail

NAME

static final java.lang.String NAME
NAME of the content controller.

See Also:
Constant Field Values
Method Detail

setFcContentClass

void setFcContentClass(java.lang.Class<?> c)
                       throws IllegalLifeCycleException,
                              ContentInstantiationException
Declare the content class associated with this component. This operation can only be performed if the component is stopped.

Parameters:
c - the content class
Throws:
IllegalLifeCycleException - if the component is not stopped
ContentInstantiationException - if the content can not be instantiated
Since:
1.0

getFcContentClass

java.lang.Class<?> getFcContentClass()
Return the content class associated with this component.

Since:
1.4.1

getFcContent

java.lang.Object getFcContent()
                              throws ContentInstantiationException
Return the current content instance. Note that depending on the scope policy, several content instances may exist concurrently. However, at most, only one instance can be associated with the requesting thread.

Throws:
ContentInstantiationException - if the content can not be instantiated

setFcContent

void setFcContent(java.lang.Object content)
                  throws IllegalLifeCycleException,
                         ContentInstantiationException
For composite-scoped components, specify the content instance to be used.

Parameters:
content - the content instance
Throws:
IllegalLifeCycleException - if the component is not stopped
ContentInstantiationException - if the content can not be initialized or if the component is not composite-scoped
Since:
1.4.3


Copyright © 2007-2011. All Rights Reserved.