Back to project page InfuseFactory.
The source code is released under:
/** * Copyright (c) 2014 Lazu Ioan-Bogdan * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from ...
If you think the Android project InfuseFactory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.factory.infuse; //from ww w . j av a2s .c o m public interface Scope { /** * Marks a instance to this scope. * * @param clazz * Class to mark as scoped. * @param instance * Instance linked to that class. */ public void markScoped(Class<?> clazz, Object instance); /** * Obtains a instance of the object from this scope or null if the class was not marked as scoped. */ public Object obtainScoped(Class<?> clazz); /** * Peeks in the scope, returning true if the scope contains the class * instance and false if it does not. */ public boolean peekScoped(Class<?> clazz); public void clearScope(); }