|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.advisor.AdvisorFactory
public abstract class AdvisorFactory
Factory class to create Advisor
-related instance objects.
Constructor Summary | |
---|---|
AdvisorFactory()
|
Method Summary | |
---|---|
static Advice |
createAdvice()
Returns a new Advice instance. |
static AdviceRequest |
createAdviceRequest(String uri,
String identifier)
Creates an AdviceRequest object for the given URI prefix. |
static ProcessingError |
createProcessingError(Object source,
String description,
Exception exception,
Object userData)
Creates a ProcessingError instance based on the given information. |
static String |
generateAdviceRequestIdentifier()
Utility method to generate a pseudo-unique identifier for use within an AdviceRequest object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdvisorFactory()
Method Detail |
---|
public static AdviceRequest createAdviceRequest(String uri, String identifier)
AdviceRequest
object for the given URI prefix.
An identifier is associated with the AdviceRequest (currently ignored).
Future Advisor
implementations may use the identifier to perform advanced
personalization and tracking. Use the generateAdviceRequestIdentifier()
method to use a generated ID.
uri
- the URI for the AdviceRequest - this will correspond to the
URI prefix of a deployed Advislet.identifier
- the identifier for this request to the Advisor.
public static Advice createAdvice()
Advice
instance.
Advice
instance.public static ProcessingError createProcessingError(Object source, String description, Exception exception, Object userData)
ProcessingError
instance based on the given information.
source
- the advislets or any other objects such as input transformers,
results transformers, etc that wish to log the error.description
- a textual description of the error.exception
- any exception associated with the error,userData
- any other information to be associated with the error.
public static String generateAdviceRequestIdentifier()
AdviceRequest
object.
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |