![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.com.fasterxml.jackson.annotation.ObjectIdGenerators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt-nodependencies Show documentation
Show all versions of java-jwt-nodependencies Show documentation
This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).
The newest version!
package com.fasterxml.jackson.annotation;
import java.util.UUID;
/**
* Container class for standard {@link ObjectIdGenerator} implementations:
*
* - {@link IntSequenceGenerator}
*
- {@link PropertyGenerator}
*
- {@link StringIdGenerator} (since 2.7)
*
- {@link UUIDGenerator}
*
*/
public class ObjectIdGenerators
{
/**
* Shared base class for concrete implementations.
*/
@SuppressWarnings("serial")
private abstract static class Base extends ObjectIdGenerator
{
protected final Class> _scope;
protected Base(Class> scope) {
_scope = scope;
}
@Override
public final Class> getScope() {
return _scope;
}
@Override
public boolean canUseFor(ObjectIdGenerator> gen) {
return (gen.getClass() == getClass()) && (gen.getScope() == _scope);
}
@Override
public abstract T generateId(Object forPojo);
}
/*
/**********************************************************
/* Implementation classes
/**********************************************************
*/
/**
* Abstract marker class used to allow explicitly specifying
* that no generator is used; which also implies that no
* Object Id is to be included or used.
*/
@SuppressWarnings("serial")
public abstract static class None extends ObjectIdGenerator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy