objectfactory.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 51 行
JAVA
51 行
/* * $Id: ObjectFactory.java 11447 2008-03-20 12:03:44Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.api.object;import org.mule.api.lifecycle.Disposable;import org.mule.api.lifecycle.Initialisable;import org.mule.api.lifecycle.InitialisationCallback;/** * <code>ObjectFactory</code> is a generic Factory interface. */public interface ObjectFactory extends Initialisable, Disposable{ /** * Retrieve an instance of the object. This may create a new instance or look up * an existing instance depending on the implementation. If a new instance is * created it will also be initialized by this method * (Initilisable.initialise()). */ Object getInstance() throws Exception; /** * Returns the class of the object to be instantiated without actually creating * an instance. This may not be logical or even possible depending on the * implementation. */ Class getObjectClass(); /** * Returns true if the ObjectFactory implementation always returns the same object * instance. * * @return */ boolean isSingleton(); /** * Register a custom initialiser */ void addObjectInitialisationCallback(InitialisationCallback callback);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?