org.base.apps.util.factory
Interface Factory

All Known Subinterfaces:
BoundViewFactory<B,C>
All Known Implementing Classes:
BaseFactory, ConfigurableFactory, ElementFactory, SwingViewFactory

public interface Factory

Defines contract for a simple factory.

Author:
Kevan Simpson

Method Summary
<T> T
create(Class<T> type, Object... args)
          Creates a new instance of the specified class, optionally using the given arguments.
 

Method Detail

create

<T> T create(Class<T> type,
             Object... args)
Creates a new instance of the specified class, optionally using the given arguments.

Type Parameters:
T - The generic representing type of the new instance.
Parameters:
type - The type of the new instance.
args - Optionally used arguments used to create the new instance.
Returns:
A new instance of the given type or null.

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)