org.glassfish.jersey.server.spi.internal
Interface ValueFactoryProvider

All Known Implementing Classes:
AbstractValueFactoryProvider

@Contract
@ConstrainedTo(value=SERVER)
public interface ValueFactoryProvider

Parameter value factory SPI.

Author:
Marek Potociar (marek.potociar at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)

Nested Class Summary
static class ValueFactoryProvider.Priority
          Enumeration of priorities for providers (e.g.
static interface ValueFactoryProvider.PriorityType
          Priorities are intended to be used as a means to determine the order in which objects are considered whether they are suitable for a particular action or not (e.g.
 
Method Summary
 ValueFactoryProvider.PriorityType getPriority()
          Gets the priority of this provider.
 org.glassfish.hk2.api.Factory<?> getValueFactory(Parameter parameter)
          Get an injected value factory for the parameter.
 

Method Detail

getValueFactory

org.glassfish.hk2.api.Factory<?> getValueFactory(Parameter parameter)
Get an injected value factory for the parameter. May return null in case the parameter is not supported by the value factory provider.

Parameters:
parameter - parameter requesting the value factory instance.
Returns:
injected parameter value factory. Returns null if parameter is not supported.

getPriority

ValueFactoryProvider.PriorityType getPriority()
Gets the priority of this provider.

Returns:
the priority of this provider.
See Also:
ValueFactoryProvider.PriorityType, ValueFactoryProvider.Priority


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.