001 // SECTION-START[License Header] 002 // <editor-fold defaultstate="collapsed" desc=" Generated License "> 003 /* 004 * Java Object Management and Configuration 005 * Copyright (C) Christian Schulte, 2005-206 006 * All rights reserved. 007 * 008 * Redistribution and use in source and binary forms, with or without 009 * modification, are permitted provided that the following conditions 010 * are met: 011 * 012 * o Redistributions of source code must retain the above copyright 013 * notice, this list of conditions and the following disclaimer. 014 * 015 * o Redistributions in binary form must reproduce the above copyright 016 * notice, this list of conditions and the following disclaimer in 017 * the documentation and/or other materials provided with the 018 * distribution. 019 * 020 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 021 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 022 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 023 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 024 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 025 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 026 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 027 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 028 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 029 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 030 * 031 * $JOMC: TestLocator.java 4459 2012-03-27 23:55:31Z schulte2005 $ 032 * 033 */ 034 // </editor-fold> 035 // SECTION-END 036 package org.jomc.ri.test.support; 037 038 import java.io.IOException; 039 import java.net.URI; 040 import org.jomc.ri.DefaultLocator; 041 042 // SECTION-START[Documentation] 043 // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 044 /** 045 * Test {@code Locator} implementation. 046 * 047 * <dl> 048 * <dt><b>Identifier:</b></dt><dd>JOMC :: RI :: Tests :: Test Locator</dd> 049 * <dt><b>Name:</b></dt><dd>Test</dd> 050 * <dt><b>Specifications:</b></dt> 051 * <dd>org.jomc.spi.Locator @ 1.0</dd> 052 * <dt><b>Abstract:</b></dt><dd>No</dd> 053 * <dt><b>Final:</b></dt><dd>No</dd> 054 * <dt><b>Stateless:</b></dt><dd>No</dd> 055 * </dl> 056 * 057 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0 058 * @version 1.2.2 059 */ 060 // </editor-fold> 061 // SECTION-END 062 // SECTION-START[Annotations] 063 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 064 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 065 // </editor-fold> 066 // SECTION-END 067 public class TestLocator 068 extends DefaultLocator 069 implements 070 org.jomc.spi.Locator 071 { 072 // SECTION-START[Locator] 073 074 @Override 075 public <T> T getObject( final Class<T> specification, final URI location ) throws IOException 076 { 077 if ( specification == null ) 078 { 079 throw new NullPointerException( "specification" ); 080 } 081 if ( location == null ) 082 { 083 throw new NullPointerException( "location" ); 084 } 085 086 return null; 087 } 088 089 // SECTION-END 090 // SECTION-START[TestLocator] 091 // SECTION-END 092 // SECTION-START[Constructors] 093 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 094 /** Creates a new {@code TestLocator} instance. */ 095 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" ) 096 public TestLocator() 097 { 098 // SECTION-START[Default Constructor] 099 super(); 100 // SECTION-END 101 } 102 // </editor-fold> 103 // SECTION-END 104 // SECTION-START[Dependencies] 105 // SECTION-END 106 // SECTION-START[Properties] 107 // SECTION-END 108 // SECTION-START[Messages] 109 // SECTION-END 110 }