+

Search Tips   |   Advanced Search

 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.ibm.portal.resourceaggregator.combiner
Interface CorResourceCombinerServiceHome

All Superinterfaces:
ResourceCombinerServiceHome
public interface CorResourceCombinerServiceHome
extends ResourceCombinerServiceHome

Home interface for the portlet service for ResourceCombinerService

A lookup for the ResourceCombinerService can be performed as follows:

 Context ctx = new InitialContext();
 CorResourceCombinerServiceHome home = (CorResourceCombinerServiceHome) ctx.lookup(CorResourceCombinerServiceHome.JNDI_NAME);
 if (home != null) {      ResourceCombinerService resourceCombinerService = home.getResourceCombinerService(corContext);
     ...
 }
 

Note: The home object should be held as long as possible, i. e. only the lookup to the model, which is COR context dependent, should be performed on every context.

Since:
8.5.0.3

Field Summary
static java.lang.String JNDI_NAME
          The JNDI name used to bind the CorResourceCombinerServiceHome singleton.
 
Method Summary
 ResourceCombinerService getResourceCombinerService(Context context)
          Return the resource combiner service.
 
Methods inherited from interface com.ibm.portal.resourceaggregator.combiner.ResourceCombinerServiceHome
createResourceList, createResourceVariations
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
The JNDI name used to bind the CorResourceCombinerServiceHome singleton.

See Also:
Constant Field Values
Method Detail

getResourceCombinerService

ResourceCombinerService getResourceCombinerService(Context context)
                                                   throws java.lang.Exception
Returns the resource combiner service.

Parameters:
context - the cor context
Returns:
an instance of ResourceCombinerService, never null
Throws:
java.lang.Exception
 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD