raphael 2002/11/08 02:03:03 Modified: src/java/org/apache/jetspeed/services/profiler ProfilerService.java Log: Add factory-like methods in Profiler interface to create new Profile and ProfileLocator instances Revision Changes Path 1.15 +30 -6 jakarta-jetspeed/src/java/org/apache/jetspeed/services/profiler/ProfilerService.java Index: ProfilerService.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/profiler/ProfilerService.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- ProfilerService.java 11 Sep 2002 18:30:55 -0000 1.14 +++ ProfilerService.java 8 Nov 2002 10:03:03 -0000 1.15 @@ -66,16 +66,16 @@ /** * <P>This interface is a facade for all profile related operations</P> - * + * * @see org.apache.jetspeed.om.profile.Profile * @author <a href="mailto:david@;bluesunrise.com">David Sean Taylor</a> - * @author <a href="mailto:morciuch@;apache.org">Mark Orciuch</a> + * @author <a href="mailto:morciuch@;apache.org">Mark Orciuch</a> * @version $Id$ */ public interface ProfilerService extends Service { - + /** The name of this service */ public String SERVICE_NAME = "Profiler"; @@ -130,6 +130,30 @@ throws ProfileException; /** + * Creates a new Profile object that can be successfully managed by + * the current Profiler implementation + * + * @return A new Profile object + */ + public Profile createProfile(); + + /** + * Creates a new Profile object for a specific locator. + * + * @param locator The description of the profile. + * @return A new Profile object + */ + public Profile createProfile(ProfileLocator locator); + + /** + * Creates a new ProfileLocator object that can be successfully managed by + * the current Profiler implementation + * + * @return A new ProfileLocator object + */ + public ProfileLocator createLocator(); + + /** * Create a new profile. The profile parameter's document will be cloned. * * @param rundata The rundata object for the current request. @@ -152,7 +176,7 @@ /** Create a new profile. * * @param locator The description of the new profile to be created. - * @param portlets The PSML tree + * @param portlets The PSML tree */ public Profile createProfile(ProfileLocator locator, Portlets portlets) throws ProfileException; @@ -174,7 +198,7 @@ /** * Returns status of role profile merging feature - * + * * @return True if role profile merging is active */ public boolean useRoleProfileMerging();
-- To unsubscribe, e-mail: <mailto:jetspeed-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-dev-help@;jakarta.apache.org>