BasePartnerComponent<TContext> Class

  • java.lang.Object
    • com.microsoft.store.partnercenter.BasePartnerComponent<TContext>

Type Parameters

TContext

Implements

IPartnerComponent<TContext>

public abstract class BasePartnerComponent implements IPartnerComponent

Holds common partner component properties and behavior. All components should inherit from this class. The context object type.

Constructor Summary

Modifier Constructor Description
protected BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)

Initializes a new instance of the BasePartnerComponent class.

Method Summary

Modifier and Type Method and Description
TContext getContext()

Gets the component context object.

IPartner getPartner()

Gets a reference to the partner operations instance that generated this component.

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

BasePartnerComponent

protected BasePartnerComponent(IPartner rootPartnerOperations, TContext componentContext)

Initializes a new instance of the BasePartnerComponent class.

Parameters:

rootPartnerOperations - The root partner operations that created this component.
componentContext - A component context object to work with.

Method Details

getContext

public TContext getContext()

Gets the component context object.

getPartner

public IPartner getPartner()

Gets a reference to the partner operations instance that generated this component.

Applies to