|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Advislet
This interface is the common interface for all Advislets
.
An Advislet is a simple, pluggable piece of personalization technology
that can be declaratively chained with other Advislets though the
AdvisletRegistry.
The Advisor uses the AdvisletRegistry to select Advislets based on the URI of an incoming AdviceRequest.
Advislets are deployed and bound to a URI through the AdvisletRegistry configuration file (advislet-registry.xml).
Method Summary | |
---|---|
Advice |
getAdvice(AdviceRequest request)
Makes recommendations based on the AdviceRequest passed in. |
Object[] |
getRequiredAttributes()
Returns an array of required attributes for the advislet. |
void |
validateAdviceRequest(AdviceRequest request)
Allows for custom AdviceRequest validation logic in addition to the required attribute checking performed by the Advisor. |
Methods inherited from interface com.bea.p13n.advisor.AdvisletChainElement |
---|
getMetadata, initialize |
Method Detail |
---|
Advice getAdvice(AdviceRequest request) throws IllegalArgumentException, AdvisorException
request
- The advice request for which to make a recommendation.
IllegalArgumentException
- thrown if the adviceRequest parameter
is null or if it is an unsupported type.
AdvisorException
- thrown on an error when processing the request.Object[] getRequiredAttributes()
validateAdviceRequest
method to perform additional processing
above and beyond attribute type checking.
void validateAdviceRequest(AdviceRequest request) throws IllegalArgumentException
request
- the request to validate.
IllegalArgumentException
- thrown if the adviceRequest parameter
is null or if it is an unsupported type.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |