com.atlassian.plugin.hostcontainer
Class DefaultHostContainer
java.lang.Object
com.atlassian.plugin.hostcontainer.DefaultHostContainer
- All Implemented Interfaces:
- HostContainer
public class DefaultHostContainer
- extends Object
- implements HostContainer
Simple host container that instantiates classes directly.
- Since:
- 2.2.0
|
Method Summary |
|
create(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 |
DefaultHostContainer
public DefaultHostContainer()
create
public <T> T create(Class<T> moduleClass)
throws 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:
IllegalArgumentException - If the constructor couldn't be called successfully
Copyright © 2015 Atlassian. All rights reserved.