本文整理匯總了Java中org.jboss.arquillian.core.spi.LoadableExtension類的典型用法代碼示例。如果您正苦於以下問題:Java LoadableExtension類的具體用法?Java LoadableExtension怎麽用?Java LoadableExtension使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LoadableExtension類屬於org.jboss.arquillian.core.spi包,在下文中一共展示了LoadableExtension類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: register
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
@Override
public void register(LoadableExtension.ExtensionBuilder builder) {
builder.service(NamespaceService.class, DefaultNamespaceService.class)
.override(LabelProvider.class, DefaultLabelProvider.class, Fabric8LabelProvider.class)
.override(AnnotationProvider.class, DefaultAnnotationProvider.class, Fabric8AnnotationProvider.class)
.override(Visitor.class, ServiceAccountVisitor.class, SecretsAndServiceAccountVisitor.class);
}
示例2: register
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
@Override
public void register(ExtensionBuilder builder) {
builder.observer(AlgeronProviderConfigurator.class);
if (LoadableExtension.Validate.classExists(
"org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender")) {
builder.observer(DeploymentEnabler.class);
builder.override(ResourceProvider.class, URLResourceProvider.class, EnvironmentUrlResourceProvider.class);
}
}
示例3: createAuxiliaryArchive
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
@Override
public Archive<?> createAuxiliaryArchive() {
JavaArchive javaArchive = ShrinkWrap.create(JavaArchive.class, "arquillian-cube.jar")
.addPackage(CubeController.class.getPackage())
.addPackages(true, CubeRemoteExtension.class.getPackage())
.addClasses(CubeControllerProvider.class, CubeControlException.class)
.addAsServiceProvider(RemoteLoadableExtension.class, CubeRemoteExtension.class);
if (LoadableExtension.Validate.classExists("org.arquillian.cube.requirement.ArquillianConditionalRunner")) {
javaArchive.addPackages(true, ArquillianConditionalRunner.class.getPackage(), Requires.class.getPackage());
}
return javaArchive;
}
示例4: isServletContainer
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
private static boolean isServletContainer() {
for (String className : SERVLET_CONTAINER_CLASSES) {
if (LoadableExtension.Validate.classExists(className)) {
return true;
}
}
return false;
}
示例5: isSwarmUrlProviderOverriden
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
private boolean isSwarmUrlProviderOverriden() {
return LoadableExtension.Validate.classExists(CUSTOM_SWARM_URL_PROVIDER);
}
示例6: register
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
public void register(LoadableExtension.ExtensionBuilder builder) {
builder.service(AuxiliaryArchiveAppender.class, CategoryArchiveAppender.class);
}
示例7: register
import org.jboss.arquillian.core.spi.LoadableExtension; //導入依賴的package包/類
@Override
public void register(LoadableExtension.ExtensionBuilder builder) {
builder.observer(InContainerManagementClientProvider.class);
builder.service(ResourceProvider.class, InContainerManagementClientProvider.class);
}