nextgrid.api.builder
Class POMBuilderFinder

java.lang.Object
  extended by nextgrid.api.builder.POMBuilderFinder

public final class POMBuilderFinder
extends java.lang.Object

POMBuilder finder.

Author:
Rodrigo Ruiz

Method Summary
static POMBuilder<?> findBuilderByURI(java.net.URI uri)
          Gets a builder by its URI id.
static
<T> POMBuilder<T>
findBuilderFor(java.lang.Class<T> c)
          Gets a builder for the specified model type.
static void register(POMBuilder<?> builder)
          Manually registers a builder, so it is available through the finder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(POMBuilder<?> builder)
Manually registers a builder, so it is available through the finder.

Parameters:
builder - The builder instance to register

findBuilderFor

public static <T> POMBuilder<T> findBuilderFor(java.lang.Class<T> c)
Gets a builder for the specified model type.

Type Parameters:
T - Used for return value type checking
Parameters:
c - The model type
Returns:
A builder for the specified model type, or null if none found

findBuilderByURI

public static POMBuilder<?> findBuilderByURI(java.net.URI uri)
Gets a builder by its URI id.

Parameters:
uri - The builder id
Returns:
The builder, or null if none found


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.