org.codegist.crest.config
Class PreconfiguredInterfaceConfigFactory

java.lang.Object
  extended by org.codegist.crest.config.PreconfiguredInterfaceConfigFactory
All Implemented Interfaces:
InterfaceConfigFactory

public class PreconfiguredInterfaceConfigFactory
extends Object
implements InterfaceConfigFactory

Preconfigured InterfaceConfigFactory holding a mapping class->InterfaceConfig.

Author:
Laurent Gilles (laurent.gilles@codegist.org)

Constructor Summary
PreconfiguredInterfaceConfigFactory(InterfaceConfig... configs)
           
 
Method Summary
 InterfaceConfig newConfig(Class<?> interfaze, CRestContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreconfiguredInterfaceConfigFactory

public PreconfiguredInterfaceConfigFactory(InterfaceConfig... configs)
Method Detail

newConfig

public InterfaceConfig newConfig(Class<?> interfaze,
                                 CRestContext context)
Specified by:
newConfig in interface InterfaceConfigFactory
Parameters:
interfaze - Interface to build the configuration from
context - Current CRest context
Returns:
The interface config object.
See Also:
InterfaceConfigFactory


Copyright © 2011. All Rights Reserved.