Code examples for org.springframework.objenesis.ObjenesisStd

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
	 * Creates a new {@link ObjenesisCglibAopProxy} using the given {@link AdvisedSupport}. 
	 * @param config must not be {@literal null}. 
	 */ 
	public ObjenesisCglibAopProxy(AdvisedSupport config) { 
		super(config); 
		this.objenesis = new ObjenesisStd(true); 
	} 
 
 
	@Override 
	@SuppressWarnings("unchecked") 
	protected Object createProxyClassAndInstance(Enhancer enhancer, Callback[] callbacks) { 
		try { 
			Factory factory = (Factory) this.objenesis.newInstance(enhancer.createClass()); 
			factory.setCallbacks(callbacks); 
			return factory; 
		} 
		catch (ObjenesisException ex) { 
			// Fallback to regular proxy construction on unsupported JVMs 
			if (logger.isDebugEnabled()) { 
Full Snippet Info
6
CodeRank
 
		Assert.notNull(mongoDbFactory, "MongoDbFactory translator must not be null!"); 
 
		this.mongoDbFactory = mongoDbFactory; 
		this.exceptionTranslator = mongoDbFactory.getExceptionTranslator(); 
		this.objenesis = new ObjenesisStd(true); 
	} 
 
	/* 
	 * (non-Javadoc) 
	 * @see org.springframework.data.mongodb.core.convert.DbRefResolver#resolveDbRef(org.springframework.data.mongodb.core.mapping.MongoPersistentProperty, org.springframework.data.mongodb.core.convert.DbRefResolverCallback) 
	 */ 
	@Override 
	public Object resolveDbRef(MongoPersistentProperty property, DBRef dbref, DbRefResolverCallback callback, 
			DbRefProxyHandler handler) { 
 
		Assert.notNull(property, "Property must not be null!"); 
		Assert.notNull(callback, "Callback must not be null!"); 
 
		if (isLazyDbRef(property)) { 
Full Snippet Info
2
CodeRank