All Downloads are FREE. Search and download functionalities are using the official Maven repository.

orbit.client.addressable.DefaultAddressableConstructor.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0a19
Show newest version
/*
 Copyright (C) 2015 - 2019 Electronic Arts Inc.  All rights reserved.
 This file is part of the Orbit Project .
 See license in LICENSE.
 */

package orbit.client.addressable

import orbit.util.di.ExternallyConfigured

internal class DefaultAddressableConstructor : AddressableConstructor {
    object DefaultAddressableConstructorSingleton : ExternallyConfigured {
        override val instanceType = DefaultAddressableConstructor::class.java
    }

    override fun constructAddressable(clazz: Class): Addressable =
        clazz.getDeclaredConstructor().newInstance()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy