com.atlassian.plugin.hostcontainer
Class DefaultHostContainer

java.lang.Object
  extended by com.atlassian.plugin.hostcontainer.DefaultHostContainer
All Implemented Interfaces:
HostContainer

public class DefaultHostContainer
extends java.lang.Object
implements HostContainer

Simple host container that instantiates classes directly.

Since:
2.2.0

Constructor Summary
DefaultHostContainer()
           
 
Method Summary
<T> T
create(java.lang.Class<T> moduleClass)
          Creates the object by instantiating the default constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHostContainer

public DefaultHostContainer()
Method Detail

create

public <T> T create(java.lang.Class<T> moduleClass)
         throws java.lang.IllegalArgumentException
Creates the object by instantiating the default constructor

Specified by:
create in interface HostContainer
Parameters:
moduleClass - The class to create
Returns:
The instance
Throws:
java.lang.IllegalArgumentException - If the constructor couldn't be called successfully


Copyright © 2010 Atlassian. All Rights Reserved.