BEA Systems, Inc.

com.beasys.commerce.axiom.advisor
Class AbstractAdviceRequestImpl

java.lang.Object
  |
  +--com.beasys.commerce.axiom.advisor.AbstractAdviceRequestImpl
Direct Known Subclasses:
ClassificationAdviceRequestImpl, ContentQueryAdviceRequestImpl, ContentSelectorAdviceRequestImpl

public abstract class AbstractAdviceRequestImpl
extends java.lang.Object
implements AdviceRequest, java.io.Serializable

This is a concrete class implementation for an advice request. Note, all Advice Request classes must be Serializable. Make sure that all data in this object are Serializable.

See Also:
Serialized Form

Field Summary
protected  Advislet advislet
           
 
Constructor Summary
AbstractAdviceRequestImpl(Advislet advislet)
          Creates a new instance of an AdviceRequest object.
 
Method Summary
 Advislet getAdvislet()
          Returns the default advislet for this type of request.
abstract  void validate()
          Validates the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

advislet

protected Advislet advislet
Constructor Detail

AbstractAdviceRequestImpl

public AbstractAdviceRequestImpl(Advislet advislet)
Creates a new instance of an AdviceRequest object. This method is meant to be called by the Advisor which acts as a factory for all AdviceRequest objects.
Parameters:
advislet - The default advislet to use for making recommendations.
Method Detail

getAdvislet

public Advislet getAdvislet()
Returns the default advislet for this type of request.
Specified by:
getAdvislet in interface AdviceRequest
Returns:
Advislet The default advislet that gives advise for this kind of AdviceRequest.

validate

public abstract void validate()
                       throws AdviceRequestValidationException
Validates the request.
Specified by:
validate in interface AdviceRequest
Throws:
AdviceRequestValidationException - thrown when not valid. The message in the exception indicates the validation error.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved