de.smartics.properties.resource.util
Class DummyInstanceCreator

Package class diagram package DummyInstanceCreator
java.lang.Object
  extended by de.smartics.properties.resource.util.DummyInstanceCreator
All Implemented Interfaces:
InstanceCreator< Object>

public final class DummyInstanceCreator
     
     
extends Object
implements InstanceCreator< Object>

An instance creator that always returns null.


Field Summary
static DummyInstanceCreator INSTANCE
          A dummy singleton.
 
Constructor Summary
DummyInstanceCreator()
          Default constructor.
 
Method Summary
 Object create()
          Creates the instance.
 Class<Object> getType()
          Returns the type this creator creates instances for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DummyInstanceCreator INSTANCE
A dummy singleton.

Constructor Detail

DummyInstanceCreator

public DummyInstanceCreator()
Default constructor.

Method Detail

getType

public Class<Object> getType()
Description copied from interface: InstanceCreator
Returns the type this creator creates instances for. The type is a generic type, the instance creator usually creates more specific types than this type indicates.

Specified by:
getType in interface InstanceCreator<Object>
Returns:
the type of the created instances.

create

public Object create()
Description copied from interface: InstanceCreator
Creates the instance.

Specified by:
create in interface InstanceCreator<Object>
Returns:
the created instance. May be null if there is not enough information to create an instance.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.