当前位置: 首页>>代码示例>>Java>>正文


Java Provider类代码示例

本文整理汇总了Java中com.sun.tracing.Provider的典型用法代码示例。如果您正苦于以下问题:Java Provider类的具体用法?Java Provider怎么用?Java Provider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Provider类属于com.sun.tracing包,在下文中一共展示了Provider类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
public <T extends Provider> T createProvider(Class<T> cls) {
    HashSet<Provider> providers = new HashSet<Provider>();
    for (ProviderFactory factory : factories) {
        providers.add(factory.createProvider(cls));
    }
    MultiplexProvider provider = new MultiplexProvider(cls, providers);
    provider.init();
    return provider.newProxyInstance();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:MultiplexProviderFactory.java

示例2: MultiplexProbe

import com.sun.tracing.Provider; //导入依赖的package包/类
MultiplexProbe(Method m, Set<Provider> providers) {
    super(m.getParameterTypes());
    probes = new HashSet<Probe>();
    for (Provider p : providers) {
        Probe probe = p.getProbe(m);
        if (probe != null) {
            probes.add(probe);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:MultiplexProviderFactory.java

示例3: createProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
public <T extends Provider> T createProvider(Class<T> cls) {
    PrintStreamProvider provider = new PrintStreamProvider(cls, stream);
    provider.init();
    return provider.newProxyInstance();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:PrintStreamProviderFactory.java

示例4: PrintStreamProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
PrintStreamProvider(Class<? extends Provider> type, PrintStream stream) {
    super(type);
    this.stream = stream;
    this.providerName = getProviderName();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:PrintStreamProviderFactory.java

示例5: NullProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
NullProvider(Class<? extends Provider> type) {
    super(type);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:NullProviderFactory.java

示例6: MultiplexProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
MultiplexProvider(Class<? extends Provider> type, Set<Provider> providers) {
    super(type);
    this.providers = providers;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:MultiplexProviderFactory.java

示例7: dispose

import com.sun.tracing.Provider; //导入依赖的package包/类
public void dispose() {
    for (Provider p : providers) {
        p.dispose();
    }
    super.dispose();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:MultiplexProviderFactory.java

示例8: DTraceProvider

import com.sun.tracing.Provider; //导入依赖的package包/类
DTraceProvider(Class<? extends Provider> type) {
    super(type);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:DTraceProvider.java

示例9: ProviderSkeleton

import com.sun.tracing.Provider; //导入依赖的package包/类
/**
 * Initializes the provider.
 *
 * @param type the user's interface
 */
protected ProviderSkeleton(Class<? extends Provider> type) {
    this.active = false; // in case of some error during initialization
    this.providerType = type;
    this.probes = new HashMap<Method,ProbeSkeleton>();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ProviderSkeleton.java


注:本文中的com.sun.tracing.Provider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。