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