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