org.netbeans.api.debugger/1 1.31.1

org.netbeans.spi.debugger
Class ContextAwareSupport

java.lang.Object
  extended by org.netbeans.spi.debugger.ContextAwareSupport

public final class ContextAwareSupport
extends Object

Support class for context-aware debugger services.

Since:
1.16

Method Summary
static Object createInstance(String service, ContextProvider context)
          A helper method that creates a context-aware debugger service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static Object createInstance(String service,
                                    ContextProvider context)
A helper method that creates a context-aware debugger service. The service must be a public class with public constructor or a public static method. The constructor or method takes no arguments or takes ContextProvider as an argument.

This method is typically called by the implementation of ContextAwareService to create an instance with the given context.

Parameters:
service - The full class name or static method that ends with '()'
context - The context with which is the service to be created
Returns:
The instance of the service with the given context.
Since:
1.16

org.netbeans.api.debugger/1 1.31.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.