org.netbeans.api.debugger/1 1.31.1

org.netbeans.spi.debugger
Interface ContextAwareService<T>


public interface ContextAwareService<T>

Instance of registry entry, that delegates to a debugger service, that can be context-aware. This instances should be registered in layers and created by ContextAwareSupport.createService factory method as follows:

   <folder name="Debugger">
       <file name="MyDebuggerService.instance">
           <attr name="instanceCreate" methodvalue="org.netbeans.spi.debugger.ContextAwareSupport.createService"/>
           <attr name="serviceName" stringvalue="org.netbeans.my_debugger.MyServiceImpl"/>
           <attr name="serviceClass" stringvalue="org.netbeans.debugger.Service"/>
       </file>
   </folder>

Since:
1.16

Method Summary
 T forContext(ContextProvider context)
          Create a debugger service in a context.
 

Method Detail

forContext

T forContext(ContextProvider context)
Create a debugger service in a context.

Parameters:
context - the context to create the service with
Returns:
the debugger service of type T.

org.netbeans.api.debugger/1 1.31.1

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