本文整理汇总了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();
}
示例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);
}
}
}
示例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();
}
示例4: PrintStreamProvider
import com.sun.tracing.Provider; //导入依赖的package包/类
PrintStreamProvider(Class<? extends Provider> type, PrintStream stream) {
super(type);
this.stream = stream;
this.providerName = getProviderName();
}
示例5: NullProvider
import com.sun.tracing.Provider; //导入依赖的package包/类
NullProvider(Class<? extends Provider> type) {
super(type);
}
示例6: MultiplexProvider
import com.sun.tracing.Provider; //导入依赖的package包/类
MultiplexProvider(Class<? extends Provider> type, Set<Provider> providers) {
super(type);
this.providers = providers;
}
示例7: dispose
import com.sun.tracing.Provider; //导入依赖的package包/类
public void dispose() {
for (Provider p : providers) {
p.dispose();
}
super.dispose();
}
示例8: DTraceProvider
import com.sun.tracing.Provider; //导入依赖的package包/类
DTraceProvider(Class<? extends Provider> type) {
super(type);
}
示例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>();
}