com.realtime.crossfire.jxclient.faces
Class FacesProviderFactory

java.lang.Object
  extended by com.realtime.crossfire.jxclient.faces.FacesProviderFactory

public class FacesProviderFactory
extends java.lang.Object

A factory for creating FacesProvider instances.


Field Summary
private  java.util.Map<java.lang.Integer,FacesProvider> facesProviders
          The defined FacesProviders.
 
Constructor Summary
FacesProviderFactory(FacesManager facesManager)
          Creates a new instance.
 
Method Summary
private  void add(FacesProvider facesProvider)
          Adds a FacesProvider to facesProviders.
 FacesProvider getFacesProvider(int size)
          Returns the FacesProvider for a given face size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

facesProviders

@NotNull
private final java.util.Map<java.lang.Integer,FacesProvider> facesProviders
The defined FacesProviders. Maps face size in pixels to faces provider instance.

Constructor Detail

FacesProviderFactory

public FacesProviderFactory(@NotNull
                            FacesManager facesManager)
Creates a new instance.

Parameters:
facesManager - the faces manager to query
Method Detail

add

private void add(@NotNull
                 FacesProvider facesProvider)
Adds a FacesProvider to facesProviders.

Parameters:
facesProvider - the faces provider to add

getFacesProvider

@Nullable
public FacesProvider getFacesProvider(int size)
Returns the FacesProvider for a given face size.

Parameters:
size - the face size in pixels
Returns:
the faces providers