Microsoft.Xna.Framework
Class GameServiceContainer

java.lang.Object
  extended by Microsoft.Xna.Framework.GameServiceContainer
All Implemented Interfaces:
System.IServiceProvider

public class GameServiceContainer
extends java.lang.Object
implements System.IServiceProvider

A collection of game services.

Author:
Halofreak1990

Constructor Summary
GameServiceContainer()
          Initializes a new instance of this class, which represents a collection of game services.
 
Method Summary
 void AddService(java.lang.Class type, java.lang.Object provider)
          Adds a service to the GameServiceContainer.
 java.lang.Object GetService(java.lang.Class type)
          Gets the object providing a specified service.
 void RemoveService(java.lang.Class type)
          Removes the object providing a specified service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameServiceContainer

public GameServiceContainer()
Initializes a new instance of this class, which represents a collection of game services.

Method Detail

AddService

public void AddService(java.lang.Class type,
                       java.lang.Object provider)
Adds a service to the GameServiceContainer.

Parameters:
type - The type of service to add.
provider - The service provider to add.

GetService

public java.lang.Object GetService(java.lang.Class type)
Gets the object providing a specified service.

Specified by:
GetService in interface System.IServiceProvider
Parameters:
type - The type of service.

RemoveService

public void RemoveService(java.lang.Class type)
Removes the object providing a specified service.

Parameters:
type - The type of service.