本文整理了Java中org.jboss.shrinkwrap.api.Archive.getAsType()
方法的一些代码示例,展示了Archive.getAsType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Archive.getAsType()
方法的具体详情如下:
包路径:org.jboss.shrinkwrap.api.Archive
类名称:Archive
方法名:getAsType
[英]Get a nested Archive as a specific type.
The found Archives must have been added as a Archive, no import is performed.
[中]获取作为特定类型的嵌套存档。
找到的存档必须已添加为存档,不执行导入。
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final ArchivePath path) {
return delegate.getAsType(type, path);
}
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final String path, final ArchiveFormat archiveFormat) {
return delegate.getAsType(type, path, archiveFormat);
}
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> Collection<X> getAsType(final Class<X> type, final Filter<ArchivePath> filter) {
return delegate.getAsType(type, filter);
}
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> Collection<X> getAsType(final Class<X> type, final Filter<ArchivePath> filter, final ArchiveFormat archiveFormat) {
return delegate.getAsType(type, filter, archiveFormat);
}
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final String path) {
return delegate.getAsType(type, path);
}
代码示例来源:origin: wildfly/wildfly-arquillian
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final ArchivePath path, final ArchiveFormat archiveFormat) {
return delegate.getAsType(type, path, archiveFormat);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.Filter)
*/
@Override
public <X extends Archive<X>> Collection<X> getAsType(Class<X> type, Filter<ArchivePath> filter) {
return this.getArchive().getAsType(type, filter);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, java.lang.String,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final String path,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, path, archiveCompression);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.Filter,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> Collection<X> getAsType(final Class<X> type, final Filter<ArchivePath> filter,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, filter, archiveCompression);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, java.lang.String)
*/
@Override
public <X extends Archive<X>> X getAsType(Class<X> type, String path) {
return this.getArchive().getAsType(type, path);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, java.lang.String)
*/
@Override
public <X extends Archive<X>> X getAsType(Class<X> type, String path) {
return this.getArchive().getAsType(type, path);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.ArchivePath)
*/
@Override
public <X extends Archive<X>> X getAsType(Class<X> type, ArchivePath path) {
return this.getArchive().getAsType(type, path);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.Filter)
*/
@Override
public <X extends Archive<X>> Collection<X> getAsType(Class<X> type, Filter<ArchivePath> filter) {
return this.getArchive().getAsType(type, filter);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.Filter,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> Collection<X> getAsType(final Class<X> type, final Filter<ArchivePath> filter,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, filter, archiveCompression);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.ArchivePath)
*/
@Override
public <X extends Archive<X>> X getAsType(Class<X> type, ArchivePath path) {
return this.getArchive().getAsType(type, path);
}
代码示例来源:origin: org.jboss.shrinkwrap/shrinkwrap-impl-base
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.ArchivePath,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final ArchivePath path,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, path, archiveCompression);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, java.lang.String,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final String path,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, path, archiveCompression);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* {@inheritDoc}
*
* @see org.jboss.shrinkwrap.api.Archive#getAsType(java.lang.Class, org.jboss.shrinkwrap.api.ArchivePath,
* org.jboss.shrinkwrap.api.ArchiveFormat)
*/
@Override
public <X extends Archive<X>> X getAsType(final Class<X> type, final ArchivePath path,
final ArchiveFormat archiveCompression) {
return this.getArchive().getAsType(type, path, archiveCompression);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* Ensure we can get a added Archive as a specific type
*
* @throws Exception
*/
@Test
public void testGetAsTypeString() throws Exception {
Archive<?> archive = getArchive();
GenericArchive child = ShrinkWrap.create(GenericArchive.class);
archive.add(child, "/", ZipExporter.class);
GenericArchive found = archive.getAsType(GenericArchive.class, child.getName());
Assert.assertNotNull(found);
}
代码示例来源:origin: shrinkwrap/shrinkwrap
/**
* Ensure we can get a added Archive as a specific type
*
* @throws Exception
*/
@Test
public void testGetAsTypeArchivePath() throws Exception {
Archive<?> archive = getArchive();
GenericArchive child = ShrinkWrap.create(GenericArchive.class);
archive.add(child, "/", ZipExporter.class);
GenericArchive found = archive.getAsType(GenericArchive.class, ArchivePaths.create(child.getName()));
Assert.assertNotNull(found);
}
内容来源于网络,如有侵权,请联系作者删除!