Packagecom.adobe.mediacore
Classpublic class ContentFactory
InheritanceContentFactory Inheritance Object
Subclasses DefaultContentFactory

Factory base class for creating and managing various components used in advertising workflow.



Public Methods
 MethodDefined By
  
Default constructor.
ContentFactory
  
Returns the ad policy selector associated with the specified media player item.
ContentFactory
  
Returns the opportunity generator associated with the specified media player item.
ContentFactory
  
Returns the resolvers associated with the specified media player item.
ContentFactory
Protected Methods
 MethodDefined By
  
Actual content factory implementations need to overwrite this method and provide the ad policy selector.
ContentFactory
  
Actual content factory implementations need to overwrite this method and provide the vector of opportunity generators.
ContentFactory
  
Actual content factory implementations need to overwrite this method and provide the vector of content resolvers.
ContentFactory
Constructor Detail
ContentFactory()Constructor
public function ContentFactory()

Default constructor.

Method Detail
doRetrieveAdPolicySelector()method
protected function doRetrieveAdPolicySelector(item:MediaPlayerItem):AdPolicySelector

Actual content factory implementations need to overwrite this method and provide the ad policy selector.

Parameters

item:MediaPlayerItem — media player item

Returns
AdPolicySelector — an AdPolicySelector instance.
doRetrieveGenerators()method 
protected function doRetrieveGenerators(item:MediaPlayerItem):Vector.<OpportunityGenerator>

Actual content factory implementations need to overwrite this method and provide the vector of opportunity generators.

Parameters

item:MediaPlayerItem — media player item

Returns
Vector.<OpportunityGenerator> — a vector containing the registered generators or an empty vector if none was found.
doRetrieveResolvers()method 
protected function doRetrieveResolvers(item:MediaPlayerItem):Vector.<ContentResolver>

Actual content factory implementations need to overwrite this method and provide the vector of content resolvers.

Parameters

item:MediaPlayerItem — media player item

Returns
Vector.<ContentResolver> — a vector containing the registered resolvers or an empty vector if none was found.
retrieveAdPolicySelector()method 
public final function retrieveAdPolicySelector(item:MediaPlayerItem):AdPolicySelector

Returns the ad policy selector associated with the specified media player item.

Parameters

item:MediaPlayerItem — media player item

Returns
AdPolicySelector — an AdPolicySelector instance.
retrieveGenerators()method 
public final function retrieveGenerators(item:MediaPlayerItem):Vector.<OpportunityGenerator>

Returns the opportunity generator associated with the specified media player item.

Parameters

item:MediaPlayerItem — media player item

Returns
Vector.<OpportunityGenerator> — a vector containing the registered resolvers or an empty vector if none was found.
retrieveResolvers()method 
public final function retrieveResolvers(item:MediaPlayerItem):Vector.<ContentResolver>

Returns the resolvers associated with the specified media player item.

Parameters

item:MediaPlayerItem — media player item

Returns
Vector.<ContentResolver> — a vector containing the registered resolvers or an empty vector if none was found.