本文整理了Java中io.fabric8.common.util.Objects.notNull()
方法的一些代码示例,展示了Objects.notNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Objects.notNull()
方法的具体详情如下:
包路径:io.fabric8.common.util.Objects
类名称:Objects
方法名:notNull
[英]Asserts whether the value is not null
[中]断言该值是否为空
代码示例来源:origin: io.hawt/hawtio-watcher-spring-context
/**
* Returns the watcher, throwing an exception if its not configured properly
*/
public WatcherSpringContext watcher() {
Objects.notNull(watcher, "watcher");
return watcher;
}
代码示例来源:origin: io.fabric8/watcher-core
public void addListener(WatcherListener listener) {
Objects.notNull(listener, "listener");
listeners.add(listener);
}
代码示例来源:origin: jboss-fuse/fabric8
public void addListener(WatcherListener listener) {
Objects.notNull(listener, "listener");
listeners.add(listener);
}
代码示例来源:origin: io.fabric8/fabric-rest
@POST
@Path("requirements")
public void setRequirements(FabricRequirements requirements) throws IOException {
Objects.notNull(requirements, "requirements");
FabricService service = getFabricService();
Objects.notNull(service, "FabricService");
service.setRequirements(requirements);
}
代码示例来源:origin: jboss-fuse/fabric8
@POST
@Path("requirements")
public void setRequirements(FabricRequirements requirements) throws IOException {
Objects.notNull(requirements, "requirements");
FabricService service = getFabricService();
Objects.notNull(service, "FabricService");
service.setRequirements(requirements);
}
代码示例来源:origin: io.fabric8/fabric-rest
/**
* Start the container
*/
@POST
@Path("start")
public void start() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.startContainer(container);
}
代码示例来源:origin: io.fabric8/fabric-rest
/**
* Stops the container
*/
@DELETE
@Path("start")
public void stop() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.stopContainer(container);
}
代码示例来源:origin: jboss-fuse/fabric8
/**
* Start the container
*/
@POST
@Path("start")
public void start() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.startContainer(container);
}
代码示例来源:origin: jboss-fuse/fabric8
/**
* Stops the container
*/
@DELETE
@Path("start")
public void stop() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.stopContainer(container);
}
代码示例来源:origin: io.fabric8/fabric-rest
/**
* Deletes this container
*/
@DELETE
public void delete() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.destroyContainer(container);
}
}
代码示例来源:origin: jboss-fuse/fabric8
/**
* Deletes this container
*/
@DELETE
public void delete() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
fabricService.destroyContainer(container);
}
}
代码示例来源:origin: io.fabric8/fabric-rest
@DELETE
public void deleteProfile() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
ProfileService profileService = getProfileService();
Objects.notNull(profileService, "profileService");
profileService.deleteProfile(fabricService, profile.getVersion(), profile.getId(), true);
}
代码示例来源:origin: jboss-fuse/fabric8
@DELETE
public void deleteProfile() {
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
ProfileService profileService = getProfileService();
Objects.notNull(profileService, "profileService");
profileService.deleteProfile(fabricService, profile.getVersion(), profile.getId(), true);
}
代码示例来源:origin: io.fabric8/fabric-agent-commands
protected void findMetadataForProfile(String versionId, String profileId, MetadataHandler handler) throws Exception {
FabricService service = fabricService.get();
Objects.notNull(service, "FabricService");
Objects.notNull(profileService, "ProfileService");
Objects.notNull(downloadManager, "DownloadManager");
Objects.notNull(immediateProfile, "Profile for versionId: " + versionId + ", profileId: " + profileId);
Profile profile = profileService.getOverlayProfile(immediateProfile);
代码示例来源:origin: io.fabric8/fabric-rest
Objects.notNull(profileDTO, "profileDTO");
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
ProfileService profileService = getProfileService();
Objects.notNull(profileService, "profileService");
String id = profileDTO.getId();
if (Strings.isNullOrBlank(id)) {
代码示例来源:origin: jboss-fuse/fabric8
Objects.notNull(profileDTO, "profileDTO");
FabricService fabricService = getFabricService();
Objects.notNull(fabricService, "fabricService");
ProfileService profileService = getProfileService();
Objects.notNull(profileService, "profileService");
String id = profileDTO.getId();
if (Strings.isNullOrBlank(id)) {
代码示例来源:origin: io.fabric8/fabric-openshift
public void update(Collection<Parser> artifacts, List<MavenRepositoryURL> repos) throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, TransformerException, GitAPIException {
File pom = new File(baseDir, "pom.xml");
Files.assertFileExists(pom);
Document doc = XmlUtils.parseDoc(pom);
Objects.notNull(doc, "xml document");
Element project = doc.getDocumentElement();
Objects.notNull(doc, "project element");
Element dependencies = getOrCreateChild(project, "dependencies", 1, true);
Element repositories = getOrCreateChild(project, "repositories", 1, true);
Element openshiftPlugins = getOrCreateOpenShiftProfilePlugins(project);
updateWarPlugin(openshiftPlugins);
updateCleanPlugin(openshiftPlugins);
updateDependencyPlugin(openshiftPlugins, dependencies, artifacts);
updateRepositories(repositories, repos);
DomHelper.save(doc, pom);
git.add().addFilepattern("pom.xml").call();
}
内容来源于网络,如有侵权,请联系作者删除!