List of usage examples for org.springframework.util Assert notNull
@Deprecated public static void notNull(@Nullable Object object)
From source file:org.synyx.hades.domain.SampleEntityPK.java
public SampleEntityPK(String first, String second) { Assert.notNull(first); Assert.notNull(second); this.first = first; this.second = second; }
From source file:org.eclipse.swordfish.core.configuration.PollableConfigurationSourceRegistry.java
@Override protected void doRegister(PollableConfigurationSource pollableConfigurationSource, Map<String, ?> properties) throws Exception { Assert.notNull(configurationAgent); Assert.notNull(pollableConfigurationSource); configurationAgent.handleConfiguration(pollableConfigurationSource.getConfigurations()); super.doRegister(pollableConfigurationSource, properties); }
From source file:org.arrow.service.engine.concurrent.dispatch.onfailure.PrintStacktraceOnFailure.java
public PrintStacktraceOnFailure(ProcessInstance processInstance) { Assert.notNull(processInstance); this.processInstance = processInstance; }
From source file:com.dynatrace.cf.servicebroker.binding.BindingRequest.java
@JsonCreator BindingRequest(@JsonProperty("service_id") String serviceId, @JsonProperty("plan_id") String planId, @JsonProperty("app_guid") String appGuid) { Assert.notNull(serviceId); Assert.notNull(planId);//w w w. java 2 s . co m this.serviceId = serviceId; this.planId = planId; this.appGuid = appGuid; }
From source file:com.wiiyaya.framework.provider.repository.revision.entity.ReflectionRevisionEntityInformation.java
public ReflectionRevisionEntityInformation(Class<?> revisionEntityClass) { Assert.notNull(revisionEntityClass); AnnotationDetectionFieldCallback fieldCallback = new AnnotationDetectionFieldCallback(RevisionNumber.class); ReflectionUtils.doWithFields(revisionEntityClass, fieldCallback); this.revisionNumberType = fieldCallback.getType(); this.revisionEntityClass = revisionEntityClass; }
From source file:org.jcf.graphicMessage.Create.java
/** * ctor with the instance of the object * @param graphicObject instance */ Create(GraphicObject graphicObject) { Assert.notNull(graphicObject); this.graphicObject = graphicObject; }
From source file:org.vaadin.spring.security.test.SecurityAwareClass.java
@Override public void afterPropertiesSet() throws Exception { Assert.notNull(vaadinSecurity); Assert.notNull(vaadinSecurityContext); }
From source file:net.groupbuy.dao.impl.DeliveryCenterDaoImpl.java
/** * ??/*from w ww.j a v a 2s.com*/ * * @param deliveryCenter * ? */ @Override public void persist(DeliveryCenter deliveryCenter) { Assert.notNull(deliveryCenter); if (deliveryCenter.getIsDefault()) { String jpql = "update DeliveryCenter deliveryCenter set deliveryCenter.isDefault = false where deliveryCenter.isDefault = true"; entityManager.createQuery(jpql).setFlushMode(FlushModeType.COMMIT).executeUpdate(); } super.persist(deliveryCenter); }
From source file:com.appdynamics.cloudfoundry.appdservicebroker.binding.BindingRequest.java
@JsonCreator BindingRequest(@JsonProperty("service_id") String serviceId, @JsonProperty("plan_id") String planId, @JsonProperty("app_guid") String appGuid) { Assert.notNull(serviceId); Assert.notNull(planId);//from w w w. j a v a2 s . c o m Assert.notNull(appGuid); this.serviceId = serviceId; this.planId = planId; this.appGuid = appGuid; }
From source file:com.github.qwazer.markdown.confluence.gradle.plugin.ConfluenceGradleTask.java
protected static void validate(ConfluenceConfig config) { Assert.notNull(config); Assert.hasLength(config.getRestApiUrl()); Assert.hasLength(config.getSpaceKey()); Assert.notNull(config.getPages());/*from w w w .j av a 2s. c o m*/ for (ConfluenceConfig.Page page : config.getPages()) { Assert.hasLength(page.getParentTitle()); Assert.hasLength(page.getTitle()); Assert.notNull(page.getSrcFile()); Assert.isTrue(!page.getParentTitle().equals(page.getTitle()), String.format("Page with title %s cannot be parent of itself ", page.getTitle())); } validateNoDuplicates(config.getPages()); }