raphael 2002/11/08 02:02:44 Modified: src/java/org/apache/jetspeed/services Profiler.java Log: Add factory-like methods in Profiler interface to create new Profile and ProfileLocator instances Revision Changes Path 1.18 +30 -6 jakarta-jetspeed/src/java/org/apache/jetspeed/services/Profiler.java Index: Profiler.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/Profiler.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Profiler.java 11 Sep 2002 18:30:55 -0000 1.17 +++ Profiler.java 8 Nov 2002 10:02:44 -0000 1.18 @@ -69,13 +69,13 @@ import java.util.Iterator; /** - * <P>This is a commodity static accessor class around the + * <P>This is a commodity static accessor class around the * <code>ProfilerService</code> interface</P> - * + * * @see org.apache.jetspeed.services.Profiler * @see org.apache.jetspeed.services.profiler.ProfilerService * @author <a href="mailto:taylor@;apache.org">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 class Profiler @@ -92,7 +92,7 @@ public final static String FULL_DEFAULT_PROFILE = "default.psml"; public final static String DEFAULT_EXTENSION = ".psml"; - /** + /** * Commodity method for getting a reference to the service * singleton */ @@ -102,7 +102,7 @@ .getInstance() .getService(ProfilerService.SERVICE_NAME); } - + /** * get the Profile object using the Rundata state and capability map * this is the mapping functionality of the profiler @@ -156,6 +156,30 @@ { return getService().makeDynamicURI( data, locator ); } + + /** + * @see ProfilerService#createProfile + */ + public static Profile createProfile() + { + return getService().createProfile(); + } + + /** + * @see ProfilerService#createProfile + */ + public static Profile createProfile(ProfileLocator locator) + { + return getService().createProfile(locator); + } + + /** + * @see ProfilerService#createProfile + */ + public static ProfileLocator createLocator() + { + return getService().createLocator(); + } /** * @see ProfilerService#createProfile
-- To unsubscribe, e-mail: <mailto:jetspeed-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-dev-help@;jakarta.apache.org>