Tabnine Logo
DeprecationSupport
Code IndexAdd Tabnine to your IDE (free)

How to use
DeprecationSupport
in
net.shibboleth.utilities.java.support.primitive

Best Java code snippets using net.shibboleth.utilities.java.support.primitive.DeprecationSupport (Showing top 20 results out of 315)

origin: net.shibboleth.idp/idp-attribute-resolver-spring

  /**
   * Constructor.  Added purely to generate the deprecation warning.
   */
  public AbstractDataConnectorParser() {
    super();
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null, super.getClass().getName());
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override @Nullable public BaseContext getParent() {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.getParent();
}
origin: net.shibboleth.idp/idp-profile-spring

  return;
DeprecationSupport.warnOnce(ObjectType.ELEMENT, "Resource",
    parserContext.getReaderContext().getResource().getDescription(),
    "resourceRef property");
  DeprecationSupport.warn(ObjectType.ELEMENT, ResourceNamespaceHandler.HTTP_ELEMENT_NAME.toString(),
      parserContext.getReaderContext().getResource().getDescription(),
      HTTPMetadataProviderParser.ELEMENT_NAME.toString());
  DeprecationSupport.warn(ObjectType.ELEMENT, ResourceNamespaceHandler.FILE_HTTP_ELEMENT_NAME.toString(),
      parserContext.getReaderContext().getResource().getDescription(),
      FileBackedHTTPMetadataProviderParser.ELEMENT_NAME.toString());
  DeprecationSupport.warn(ObjectType.ELEMENT, ResourceNamespaceHandler.FILESYSTEM_ELEMENT_NAME.toString(),
      parserContext.getReaderContext().getResource().getDescription(),
      FilesystemMetadataProviderParser.ELEMENT_NAME.toString());
origin: net.shibboleth.idp/idp-attribute-resolver-api

/**
 * {@inheritDoc}
 *
 * @deprecated Use {@link #setAttributeNames} instead
 * @see        #setAttributeNames
 */
@Override @Deprecated public void setDependencyAttributeId(@Nullable final String attributeId) {
  DeprecationSupport.warn(ObjectType.METHOD,
      "ResolverDataConnectorDependency#setDependencyAttributeId(String)",
      null, "#setAttributeNames(Collection<String>)");
  super.setDependencyAttributeId(attributeId);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override @Nullable public <T extends BaseContext> T getSubcontext(@Nonnull final Class<T> clazz) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.getSubcontext(clazz);
}
origin: net.shibboleth.idp/idp-installer

/**
 * Constructor.
 * 
 * @param file file to output to.
 * @throws FileNotFoundException if the file cannot be found.
 */
public MetadataGenerator(@Nonnull final File file) throws FileNotFoundException {
  DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
  final File nonnullFile = Constraint.isNotNull(file, "provided file must be nonnull");
  final FileOutputStream outStream = new FileOutputStream(nonnullFile);
  writer = new BufferedWriter(new OutputStreamWriter(outStream));
  endpoints = EnumSet.allOf(Endpoints.class);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override @Nullable public <T extends BaseContext> T getSubcontext(@Nonnull final Class<T> clazz,
    final boolean autocreate) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.getSubcontext(clazz, autocreate);
}
origin: net.shibboleth.idp/idp-saml-impl

/** {@inheritDoc} */
@Override
protected void doInitialize() throws ComponentInitializationException {
  super.doInitialize();
  
  DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/** {@inheritDoc} */
@Override @Nonnull public Iterator<BaseContext> iterator() {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.iterator();
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param query to search the database
 * @deprecated - use the property setters
 */
@Deprecated public FormatExecutableStatementBuilder(@Nonnull final String query) {
  DeprecationSupport.warn(ObjectType.METHOD, "FormatExecutableStatementBuilder(String)", null, null);
  sqlQuery = Constraint.isNotNull(query, "SQL query can not be null");
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * see {@link AttributeResolverWorkContext#recordDataConnectorResolution(DataConnector,Map)}.
 * 
 * @param connector as the delegate does
 * @param attributes as the delegate does
 * @throws ResolutionException as the delegate does
 */
public void recordDataConnectorResolution(@Nonnull final DataConnector connector,
    @Nullable final Map<String, IdPAttribute> attributes) throws ResolutionException {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  log.error("'{}' Use of workContext.recordDataConnectorResolution() is deprecated and will cause instability",
      logPrefix);
  delegate.recordDataConnectorResolution(connector, attributes);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param attrName the name to filter on.
 * @deprecated use the property setter instead
 */
@Deprecated public IdPAttributePrincipalValuesFunction(@Nonnull final String attrName) {
  attributeName = Constraint.isNotNull(attrName, "Attribute Name should be non-null");
  DeprecationSupport.warn(ObjectType.METHOD, 
      "IdPAttributePrincipalValuesFunction(String)", null, null);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override public void removeSubcontext(@Nonnull final BaseContext subcontext) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  delegate.removeSubcontext(subcontext);
}
origin: net.shibboleth.idp/idp-installer

  /** {@inheritDoc} */
  @Override
  public void execute() {
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
    try {
      tool.changeKey();
    } catch (final Exception e) {
      log("Build failed", e, Project.MSG_ERR);
      throw new BuildException(e);
    }
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override public <T extends BaseContext> boolean containsSubcontext(@Nonnull final Class<T> clazz) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.containsSubcontext(clazz);
}
origin: net.shibboleth.idp/idp-core

/** {@inheritDoc} */
@Override
protected void doInitialize() throws ComponentInitializationException {
  
  for (final Map.Entry<String,String> entry : deprecatedProperties.entrySet()) {
    if (applicationContext.getEnvironment().containsProperty(entry.getKey())) {
      DeprecationSupport.warn(ObjectType.PROPERTY, entry.getKey(), null, entry.getValue());
    }
  }
  for (final String name : deadProperties) {
    if (applicationContext.getEnvironment().containsProperty(name)) {
      log.warn("property '{}' is no longer supported", name);
    }
  }
}

origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override @Nonnull public BaseContext addSubcontext(@Nonnull final BaseContext subContext) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.addSubcontext(subContext);
}
origin: net.shibboleth.idp/idp-installer

  @Override 
  /** {@inheritDoc} */
  public void execute() {
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
    try {
      generator.generate();
    } catch (final Exception e) {
      log("Build failed", e, Project.MSG_ERR);
      throw new BuildException(e);
    }
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

@Override @Nonnull public BaseContext addSubcontext(@Nonnull final BaseContext subcontext, final boolean replace) {
  DeprecationSupport.warnOnce(ObjectType.CLASS, AttributeResolverWorkContext.class.getName(), null, null);
  return delegate.addSubcontext(subcontext, replace);
}
origin: net.shibboleth.idp/idp-attribute-filter-spring

/** {@inheritDoc} */
@Override protected void doNativeParse(@Nonnull final Element element, @Nonnull final ParserContext parserContext,
    @Nonnull final BeanDefinitionBuilder builder) {
  super.doNativeParse(element, parserContext, builder);
  
  DeprecationSupport.warn(ObjectType.XSITYPE, SCHEMA_TYPE_AFP.toString(),
      parserContext.getReaderContext().getResource().getDescription(), null);
}

net.shibboleth.utilities.java.support.primitiveDeprecationSupport

Most used methods

  • warn
  • warnOnce

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFileChooser (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now