本文整理汇总了Java中org.mule.api.lifecycle.InitialisationException类的典型用法代码示例。如果您正苦于以下问题:Java InitialisationException类的具体用法?Java InitialisationException怎么用?Java InitialisationException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InitialisationException类属于org.mule.api.lifecycle包,在下文中一共展示了InitialisationException类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialise
点赞 3
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
public void initialise() throws InitialisationException
{
books = new HashMap <Long, Book> ();
// Add some initial test data
addBook(new Book("J.R.R. Tolkien", "The Fellowship of the Ring", 8));
addBook(new Book("J.R.R. Tolkien", "The Two Towers", 10));
addBook(new Book("J.R.R. Tolkien", "The Return of the King", 10));
addBook(new Book("C.S. Lewis", "The Lion, the Witch and the Wardrobe", 6));
addBook(new Book("C.S. Lewis", "Prince Caspian", 8));
addBook(new Book("C.S. Lewis", "The Voyage of the Dawn Treader", 6));
addBook(new Book("Leo Tolstoy", "War and Peace", 8));
addBook(new Book("Leo Tolstoy", "Anna Karenina", 6));
addBook(new Book("Henry David Thoreau", "Walden", 8));
addBook(new Book("Harriet Beecher Stowe", "Uncle Tom's Cabin", 6));
addBook(new Book("George Orwell", "1984", 8));
addBook(new Book("George Orwell", "Animal Farm", 8));
addBook(new Book("Aldous Huxley", "Brave New World", 8));
}
开发者ID:danielkennedy,
项目名称:cf-buildpack-mule,
代码行数:21,
代码来源:CatalogServiceImpl.java
示例2: initialise
点赞 3
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
@Override
public void initialise() throws InitialisationException {
super.initialise();
if (expression == null) {
throw new InitialisationException(MessageFactory.createStaticMessage("An expression must be supplied to the Dynamic XPath Transformer"), this);
}
try {
transformerPool.addObject();
} catch (Throwable te) {
throw new InitialisationException(te, this);
}
// transform context properties to thread safe alternative
List<String> keys = new ArrayList<String>();
List<Object> values = new ArrayList<Object>();
for (Entry<String, Object> entryParameter : contextProperties.entrySet()) {
keys.add(entryParameter.getKey());
values.add(entryParameter.getValue());
}
this.keys = keys.toArray(new String[keys.size()]);
this.values = values.toArray(new String[values.size()]);
}
开发者ID:skjolber,
项目名称:mule-module-dxpath,
代码行数:27,
代码来源:DxTransformer.java
示例3: initialise
点赞 2
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
@Override
public void initialise() throws InitialisationException
{
super.initialise();
if (endpoints == null || endpoints.size() == 0)
{
throw new InitialisationException(CoreMessages.objectIsNull("endpoints"), this);
}
// for (int i = 0; i < endpoints.size() - 1; i++)
// { endpoints.get(i);
//
// }
}
开发者ID:mprins,
项目名称:muleebmsadapter,
代码行数:16,
代码来源:AsyncChainingMulticastingRouter.java
示例4: initialise
点赞 2
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
public void initialise() throws InitialisationException
{
if (bus == null)
{
throw new InitialisationException(MessageFactory.createStaticMessage("No Cxf bus instance, this component has not been initialized properly."), this);
}
}
开发者ID:mprins,
项目名称:muleebmsadapter,
代码行数:8,
代码来源:CxfServiceComponent.java
示例5: initialise
点赞 2
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
@Override
public void initialise() throws InitialisationException
{
if (publicResource && acceptsCredentials)
{
throw new IllegalArgumentException("Resource may not be public and accept credentials at the same time");
}
corsFilter = new MuleCorsFilter(config, publicResource, acceptsCredentials);
}
开发者ID:mulesoft,
项目名称:mule-module-cors,
代码行数:11,
代码来源:ValidateMessageProcessor.java
示例6: initialise
点赞 2
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
@Override
public void initialise() throws InitialisationException {
//Ignore
}
开发者ID:nikolajo,
项目名称:ci-push,
代码行数:5,
代码来源:CreateQueueAgent.java
示例7: initialise
点赞 2
import org.mule.api.lifecycle.InitialisationException; //导入依赖的package包/类
@Override
public void initialise() throws InitialisationException
{
boolean newObjectStore = false;
//no object store configured.
if (this.originsStore == null) {
//if (logger.isDebugEnabled()) logger.debug("No object store configured, defaulting to " + Constants.ORIGINS_OBJECT_STORE);
this.originsStore = muleContext.getObjectStoreManager().getObjectStore(getObjectStoreName());
newObjectStore = true;
}
//setup all configured object stores.
if (this.origins == null) {
//if (logger.isDebugEnabled()) logger.debug("No initial set of origins configured.");
return;
}
try {
for(Origin o : origins) {
//if (logger.isDebugEnabled()) {
// logger.debug("Configuring origin: " + o.getUrl());
//}
if (originsStore.contains(o.getUrl()))
{
if (newObjectStore) {
originsStore.remove(o.getUrl());
} else {
//logger.warn("Object Store already contains " + o.getUrl());
continue;
}
}
originsStore.store(o.getUrl(), o);
}
} catch(ObjectStoreException ose) {
throw new InitialisationException(ose, this);
}
}
开发者ID:mulesoft,
项目名称:mule-module-cors,
代码行数:44,
代码来源:CorsConfig.java