1   /*
2    * $Id: TestConnectorWithContainerDependents.java 7976 2007-08-21 14:26:13Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.extras.spring.events;
12  
13  import org.mule.tck.testmodels.fruit.Apple;
14  import org.mule.tck.testmodels.mule.TestConnector;
15  import org.mule.umo.lifecycle.InitialisationException;
16  
17  public class TestConnectorWithContainerDependents extends TestConnector
18  {
19      private Apple containerProp;
20  
21      /*
22       * (non-Javadoc)
23       * 
24       * @see org.mule.providers.AbstractConnector#doInitialise()
25       */
26      protected void doInitialise() throws InitialisationException
27      {
28          super.doInitialise();
29          if (containerProp == null)
30          {
31              throw new IllegalStateException(
32                  "Initialise should not be called before all properties have been set");
33          }
34  
35      }
36  
37      public Apple getContainerProp()
38      {
39          return containerProp;
40      }
41  
42      public void setContainerProp(Apple containerProp)
43      {
44          this.containerProp = containerProp;
45      }
46  
47  }