xades4j.utils
Class XadesProfileCore

java.lang.Object
  extended by xades4j.utils.XadesProfileCore

public final class XadesProfileCore
extends Object

Helper class that implements the core logic of profile resolution based on a series of dependencies. Profile resultion is based on Google's dependency container (Guice).

Author:
Luís
See Also:
XadesSigningProfile, XadesVerificationProfile, XadesFormatExtenderProfile

Constructor Summary
XadesProfileCore()
           
 
Method Summary
<T> void
addBinding(Class<T> from, Class<? extends T> to)
           
<T> void
addBinding(Class<T> from, T to)
           
 void addGenericBinding(Type genericClass, Class to, Type... genericClassParams)
           
 void addGenericBinding(Type genericClass, Object to, Type... genericClassParams)
           
<T> T
getInstance(Class<T> clazz, com.google.inject.Module defaultsModule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XadesProfileCore

public XadesProfileCore()
Method Detail

addBinding

public <T> void addBinding(Class<T> from,
                           Class<? extends T> to)
Throws:
NullPointerException - if from or to are null

addBinding

public <T> void addBinding(Class<T> from,
                           T to)
Throws:
NullPointerException - if from or to are null

addGenericBinding

public void addGenericBinding(Type genericClass,
                              Class to,
                              Type... genericClassParams)

addGenericBinding

public void addGenericBinding(Type genericClass,
                              Object to,
                              Type... genericClassParams)

getInstance

public <T> T getInstance(Class<T> clazz,
                         com.google.inject.Module defaultsModule)
              throws XadesProfileResolutionException
Throws:
XadesProfileResolutionException


Copyright © 2012. All Rights Reserved.