001package org.jadira.reflection.access.unsafe; 002 003import org.jadira.reflection.access.api.ClassAccess; 004import org.jadira.reflection.access.api.ClassAccessFactory; 005 006public class UnsafeClassAccessFactory implements ClassAccessFactory { 007 008 public static final ClassAccessFactory FACTORY = new UnsafeClassAccessFactory(); 009 010 private UnsafeClassAccessFactory() { 011 } 012 013 @Override 014 public <C> ClassAccess<C> getClassAccess(Class<C> clazz) { 015 return UnsafeClassAccess.get(clazz); 016 } 017 018 public static ClassAccessFactory get() { 019 return FACTORY; 020 } 021}