Package org.codehaus.preon.annotation

Examples of org.codehaus.preon.annotation.BoundExplicitly.factory()


        if (metadata != null
                && metadata.isAnnotationPresent(BoundExplicitly.class)) {
            BoundExplicitly settings = metadata
                    .getAnnotation(BoundExplicitly.class);
            try {
                CodecFactory factory = settings.factory().newInstance();
                return factory.create(metadata, type, null);
            } catch (InstantiationException e) {
                throw new CodecConstructionException(
                        "Failed to construct Codec using "
                                + settings.factory().getName());
View Full Code Here


                CodecFactory factory = settings.factory().newInstance();
                return factory.create(metadata, type, null);
            } catch (InstantiationException e) {
                throw new CodecConstructionException(
                        "Failed to construct Codec using "
                                + settings.factory().getName());
            } catch (IllegalAccessException e) {
                throw new CodecConstructionException(
                        "No permission to construct an instance of "
                                + settings.factory().getName());
            }
View Full Code Here

                        "Failed to construct Codec using "
                                + settings.factory().getName());
            } catch (IllegalAccessException e) {
                throw new CodecConstructionException(
                        "No permission to construct an instance of "
                                + settings.factory().getName());
            }
        } else {
            return null;
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.