source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/core/SolrResourceLoader.html @ 7588

Revision 7588, 52.3 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:24 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8SolrResourceLoader (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="SolrResourceLoader (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrResourceLoader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../org/apache/solr/core/SolrInfoMBean.Category.html" title="enum in org.apache.solr.core"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/solr/core/SolrXMLSerializer.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/solr/core/SolrResourceLoader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="SolrResourceLoader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.solr.core</FONT>
92<BR>
93Class SolrResourceLoader</H2>
94<PRE>
95<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.core.SolrResourceLoader</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util">ResourceLoader</A></DD>
100</DL>
101<DL>
102<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/solr/cloud/ZkSolrResourceLoader.html" title="class in org.apache.solr.cloud">ZkSolrResourceLoader</A></DD>
103</DL>
104<HR>
105<DL>
106<DT><PRE>public class <B>SolrResourceLoader</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/solr/common/ResourceLoader.html" title="interface in org.apache.solr.common">ResourceLoader</A></DL>
107</PRE>
108
109<P>
110<DL>
111<DT><B>Since:</B></DT>
112  <DD>solr 1.3</DD>
113</DL>
114<HR>
115
116<P>
117<!-- =========== FIELD SUMMARY =========== -->
118
119<A NAME="field_summary"><!-- --></A>
120<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123<B>Field Summary</B></FONT></TH>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URLClassLoader.html?is-external=true" title="class or interface in java.net">URLClassLoader</A></CODE></FONT></TD>
128<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#classLoader">classLoader</A></B></CODE>
129
130<BR>
131&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>static&nbsp;org.slf4j.Logger</CODE></FONT></TD>
136<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#log">log</A></B></CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
140</TR>
141</TABLE>
142&nbsp;
143<!-- ======== CONSTRUCTOR SUMMARY ======== -->
144
145<A NAME="constructor_summary"><!-- --></A>
146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
148<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
149<B>Constructor Summary</B></FONT></TH>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#SolrResourceLoader(java.lang.String)">SolrResourceLoader</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir)</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#SolrResourceLoader(java.lang.String, java.lang.ClassLoader)">SolrResourceLoader</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir,
159                   <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;parent)</CODE>
160
161<BR>
162&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
163 This loader will delegate to the context classloader when possible,
164 otherwise it will attempt to resolve resources using any jar files
165 found in the "lib/" directory in the specified instance directory.</TD>
166</TR>
167<TR BGCOLOR="white" CLASS="TableRowColor">
168<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#SolrResourceLoader(java.lang.String, java.lang.ClassLoader, java.util.Properties)">SolrResourceLoader</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir,
169                   <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;parent,
170                   <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A>&nbsp;coreProperties)</CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
174 This loader will delegate to the context classloader when possible,
175 otherwise it will attempt to resolve resources using any jar files
176 found in the "lib/" directory in the specified instance directory.</TD>
177</TR>
178</TABLE>
179&nbsp;
180<!-- ========== METHOD SUMMARY =========== -->
181
182<A NAME="method_summary"><!-- --></A>
183<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186<B>Method Summary</B></FONT></TH>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>
191<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
192<TR ALIGN="right" VALIGN="">
193<TD NOWRAP><FONT SIZE="-1">
194<CODE>&lt;T&gt; <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends T&gt;</CODE></FONT></TD>
195</TR>
196</TABLE>
197</CODE></FONT></TD>
198<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#findClass(java.lang.String, java.lang.Class, java.lang.String...)">findClass</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
199          <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
200          <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method loads a class either with it's FQN or a short-name (solr.class-simplename or class-simplename).</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A></CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getClassLoader()">getClassLoader</A></B>()</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EXPERT
212 <p/>
213 The underlying class loader.</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getConfigDir()">getConfigDir</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A></CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getCoreProperties()">getCoreProperties</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getDataDir()">getDataDir</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getInstanceDir()">getInstanceDir</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getLines(java.lang.String)">getLines</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accesses a resource by name and returns the (non comment) lines
254 containing data.</TD>
255</TR>
256<TR BGCOLOR="white" CLASS="TableRowColor">
257<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
259<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getLines(java.lang.String, java.nio.charset.Charset)">getLines</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource,
260         <A HREF="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</A>&nbsp;charset)</CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
264</TR>
265<TR BGCOLOR="white" CLASS="TableRowColor">
266<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
268<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#getLines(java.lang.String, java.lang.String)">getLines</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource,
269         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accesses a resource by name and returns the (non comment) lines containing
273 data using the given character encoding.</TD>
274</TR>
275<TR BGCOLOR="white" CLASS="TableRowColor">
276<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
277<CODE>&nbsp;void</CODE></FONT></TD>
278<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#inform(java.util.Map)">inform</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/solr/core/SolrInfoMBean.html" title="interface in org.apache.solr.core">SolrInfoMBean</A>&gt;&nbsp;infoRegistry)</CODE>
279
280<BR>
281&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register any <A HREF="../../../../org/apache/solr/core/SolrInfoMBean.html" title="interface in org.apache.solr.core"><CODE>SolrInfoMBean</CODE></A>s</TD>
282</TR>
283<TR BGCOLOR="white" CLASS="TableRowColor">
284<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
285<CODE>&nbsp;void</CODE></FONT></TD>
286<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#inform(org.apache.solr.common.ResourceLoader)">inform</A></B>(<A HREF="../../../../org/apache/solr/common/ResourceLoader.html" title="interface in org.apache.solr.common">ResourceLoader</A>&nbsp;loader)</CODE>
287
288<BR>
289&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell all <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoaderAware.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util"><CODE>ResourceLoaderAware</CODE></A> instances about the loader</TD>
290</TR>
291<TR BGCOLOR="white" CLASS="TableRowColor">
292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293<CODE>&nbsp;void</CODE></FONT></TD>
294<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#inform(org.apache.solr.core.SolrCore)">inform</A></B>(<A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A>&nbsp;core)</CODE>
295
296<BR>
297&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell all <A HREF="../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin"><CODE>SolrCoreAware</CODE></A> instances about the SolrCore</TD>
298</TR>
299<TR BGCOLOR="white" CLASS="TableRowColor">
300<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
301<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
302<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#listConfigDir()">listConfigDir</A></B>()</CODE>
303
304<BR>
305&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
306</TR>
307<TR BGCOLOR="white" CLASS="TableRowColor">
308<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
310<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#locateSolrHome()">locateSolrHome</A></B>()</CODE>
311
312<BR>
313&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the solrhome based on looking up the value in one of three places:
314 
315  JNDI: via java:comp/env/solr/home
316  The system property solr.solr.home
317  Look in the current working directory for a solr/ directory
318 
319
320 The return value is normalized.</TD>
321</TR>
322<TR BGCOLOR="white" CLASS="TableRowColor">
323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324<CODE>&nbsp;<A HREF="../../../../org/apache/solr/handler/admin/CoreAdminHandler.html" title="class in org.apache.solr.handler.admin">CoreAdminHandler</A></CODE></FONT></TD>
325<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#newAdminHandlerInstance(org.apache.solr.core.CoreContainer, java.lang.String, java.lang.String...)">newAdminHandlerInstance</A></B>(<A HREF="../../../../org/apache/solr/core/CoreContainer.html" title="class in org.apache.solr.core">CoreContainer</A>&nbsp;coreContainer,
326                        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
327                        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</CODE>
328
329<BR>
330&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
331</TR>
332<TR BGCOLOR="white" CLASS="TableRowColor">
333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334<CODE>
335<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
336<TR ALIGN="right" VALIGN="">
337<TD NOWRAP><FONT SIZE="-1">
338<CODE>&lt;T&gt; T</CODE></FONT></TD>
339</TR>
340</TABLE>
341</CODE></FONT></TD>
342<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#newInstance(java.lang.String, java.lang.Class, java.lang.String...)">newInstance</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
343            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
344            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</CODE>
345
346<BR>
347&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
348</TR>
349<TR BGCOLOR="white" CLASS="TableRowColor">
350<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
351<CODE>
352<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
353<TR ALIGN="right" VALIGN="">
354<TD NOWRAP><FONT SIZE="-1">
355<CODE>&lt;T&gt; T</CODE></FONT></TD>
356</TR>
357</TABLE>
358</CODE></FONT></TD>
359<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#newInstance(java.lang.String, java.lang.Class, java.lang.String[], java.lang.Class[], java.lang.Object[])">newInstance</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cName,
360            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
361            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;subPackages,
362            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>[]&nbsp;params,
363            <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;args)</CODE>
364
365<BR>
366&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
367</TR>
368<TR BGCOLOR="white" CLASS="TableRowColor">
369<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
370<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
371<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#normalizeDir(java.lang.String)">normalizeDir</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;path)</CODE>
372
373<BR>
374&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ensures a directory name always ends with a '/'.</TD>
375</TR>
376<TR BGCOLOR="white" CLASS="TableRowColor">
377<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
378<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
379<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#openConfig(java.lang.String)">openConfig</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
380
381<BR>
382&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a config resource by its name.</TD>
383</TR>
384<TR BGCOLOR="white" CLASS="TableRowColor">
385<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
386<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
387<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#openResource(java.lang.String)">openResource</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource)</CODE>
388
389<BR>
390&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens any resource by its name.</TD>
391</TR>
392<TR BGCOLOR="white" CLASS="TableRowColor">
393<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
394<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
395<TD><CODE><B><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#openSchema(java.lang.String)">openSchema</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
396
397<BR>
398&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a schema resource by its name.</TD>
399</TR>
400</TABLE>
401&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
402<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
403<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
404<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
405</TR>
406<TR BGCOLOR="white" CLASS="TableRowColor">
407<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
408</TR>
409</TABLE>
410&nbsp;
411<P>
412
413<!-- ============ FIELD DETAIL =========== -->
414
415<A NAME="field_detail"><!-- --></A>
416<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
417<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
418<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
419<B>Field Detail</B></FONT></TH>
420</TR>
421</TABLE>
422
423<A NAME="log"><!-- --></A><H3>
424log</H3>
425<PRE>
426public static final org.slf4j.Logger <B>log</B></PRE>
427<DL>
428<DL>
429</DL>
430</DL>
431<HR>
432
433<A NAME="classLoader"><!-- --></A><H3>
434classLoader</H3>
435<PRE>
436protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/URLClassLoader.html?is-external=true" title="class or interface in java.net">URLClassLoader</A> <B>classLoader</B></PRE>
437<DL>
438<DL>
439</DL>
440</DL>
441
442<!-- ========= CONSTRUCTOR DETAIL ======== -->
443
444<A NAME="constructor_detail"><!-- --></A>
445<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
446<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
447<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
448<B>Constructor Detail</B></FONT></TH>
449</TR>
450</TABLE>
451
452<A NAME="SolrResourceLoader(java.lang.String, java.lang.ClassLoader, java.util.Properties)"><!-- --></A><H3>
453SolrResourceLoader</H3>
454<PRE>
455public <B>SolrResourceLoader</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir,
456                          <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;parent,
457                          <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A>&nbsp;coreProperties)</PRE>
458<DL>
459<DD><p>
460 This loader will delegate to the context classloader when possible,
461 otherwise it will attempt to resolve resources using any jar files
462 found in the "lib/" directory in the specified instance directory.
463 </p>
464<P>
465<DL>
466<DT><B>Parameters:</B><DD><CODE>instanceDir</CODE> - - base directory for this resource loader, if null locateSolrHome() will be used.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#locateSolrHome()"><CODE>locateSolrHome()</CODE></A></DL>
467</DL>
468<HR>
469
470<A NAME="SolrResourceLoader(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>
471SolrResourceLoader</H3>
472<PRE>
473public <B>SolrResourceLoader</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir,
474                          <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A>&nbsp;parent)</PRE>
475<DL>
476<DD><p>
477 This loader will delegate to the context classloader when possible,
478 otherwise it will attempt to resolve resources using any jar files
479 found in the "lib/" directory in the specified instance directory.
480 If the instance directory is not specified (=null), SolrResourceLoader#locateInstanceDir will provide one.
481 <p>
482<P>
483</DL>
484<HR>
485
486<A NAME="SolrResourceLoader(java.lang.String)"><!-- --></A><H3>
487SolrResourceLoader</H3>
488<PRE>
489public <B>SolrResourceLoader</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;instanceDir)</PRE>
490<DL>
491</DL>
492
493<!-- ============ METHOD DETAIL ========== -->
494
495<A NAME="method_detail"><!-- --></A>
496<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
497<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
498<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
499<B>Method Detail</B></FONT></TH>
500</TR>
501</TABLE>
502
503<A NAME="normalizeDir(java.lang.String)"><!-- --></A><H3>
504normalizeDir</H3>
505<PRE>
506public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>normalizeDir</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;path)</PRE>
507<DL>
508<DD>Ensures a directory name always ends with a '/'.
509<P>
510<DD><DL>
511</DL>
512</DD>
513<DD><DL>
514</DL>
515</DD>
516</DL>
517<HR>
518
519<A NAME="listConfigDir()"><!-- --></A><H3>
520listConfigDir</H3>
521<PRE>
522public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>listConfigDir</B>()</PRE>
523<DL>
524<DD><DL>
525</DL>
526</DD>
527<DD><DL>
528</DL>
529</DD>
530</DL>
531<HR>
532
533<A NAME="getConfigDir()"><!-- --></A><H3>
534getConfigDir</H3>
535<PRE>
536public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getConfigDir</B>()</PRE>
537<DL>
538<DD><DL>
539</DL>
540</DD>
541<DD><DL>
542</DL>
543</DD>
544</DL>
545<HR>
546
547<A NAME="getDataDir()"><!-- --></A><H3>
548getDataDir</H3>
549<PRE>
550public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDataDir</B>()</PRE>
551<DL>
552<DD><DL>
553</DL>
554</DD>
555<DD><DL>
556</DL>
557</DD>
558</DL>
559<HR>
560
561<A NAME="getCoreProperties()"><!-- --></A><H3>
562getCoreProperties</H3>
563<PRE>
564public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A> <B>getCoreProperties</B>()</PRE>
565<DL>
566<DD><DL>
567</DL>
568</DD>
569<DD><DL>
570</DL>
571</DD>
572</DL>
573<HR>
574
575<A NAME="getClassLoader()"><!-- --></A><H3>
576getClassLoader</H3>
577<PRE>
578public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</A> <B>getClassLoader</B>()</PRE>
579<DL>
580<DD>EXPERT
581 <p/>
582 The underlying class loader.  Most applications will not need to use this.
583<P>
584<DD><DL>
585</DL>
586</DD>
587<DD><DL>
588
589<DT><B>Returns:</B><DD>The <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang"><CODE>ClassLoader</CODE></A></DL>
590</DD>
591</DL>
592<HR>
593
594<A NAME="openSchema(java.lang.String)"><!-- --></A><H3>
595openSchema</H3>
596<PRE>
597public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>openSchema</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
598<DL>
599<DD>Opens a schema resource by its name.
600 Override this method to customize loading schema resources.
601<P>
602<DD><DL>
603</DL>
604</DD>
605<DD><DL>
606
607<DT><B>Returns:</B><DD>the stream for the named schema</DL>
608</DD>
609</DL>
610<HR>
611
612<A NAME="openConfig(java.lang.String)"><!-- --></A><H3>
613openConfig</H3>
614<PRE>
615public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>openConfig</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
616<DL>
617<DD>Opens a config resource by its name.
618 Override this method to customize loading config resources.
619<P>
620<DD><DL>
621</DL>
622</DD>
623<DD><DL>
624
625<DT><B>Returns:</B><DD>the stream for the named configuration</DL>
626</DD>
627</DL>
628<HR>
629
630<A NAME="openResource(java.lang.String)"><!-- --></A><H3>
631openResource</H3>
632<PRE>
633public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>openResource</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource)</PRE>
634<DL>
635<DD>Opens any resource by its name.
636 By default, this will look in multiple locations to load the resource:
637 $configDir/$resource (if resource is not absolute)
638 $CWD/$resource
639 otherwise, it will look for it in any jar accessible through the class loader.
640 Override this method to customize loading resources.
641<P>
642<DD><DL>
643<DT><B>Specified by:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true#openResource(java.lang.String)" title="class or interface in org.apache.lucene.analysis.util">openResource</A></CODE> in interface <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util">ResourceLoader</A></CODE></DL>
644</DD>
645<DD><DL>
646
647<DT><B>Returns:</B><DD>the stream for the named resource</DL>
648</DD>
649</DL>
650<HR>
651
652<A NAME="getLines(java.lang.String)"><!-- --></A><H3>
653getLines</H3>
654<PRE>
655public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>getLines</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource)
656                      throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
657<DL>
658<DD>Accesses a resource by name and returns the (non comment) lines
659 containing data.
660
661 <p>
662 A comment line is any line that starts with the character "#"
663 </p>
664<P>
665<DD><DL>
666<DT><B>Specified by:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true#getLines(java.lang.String)" title="class or interface in org.apache.lucene.analysis.util">getLines</A></CODE> in interface <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util">ResourceLoader</A></CODE></DL>
667</DD>
668<DD><DL>
669<DT><B>Parameters:</B><DD><CODE>resource</CODE> -
670<DT><B>Returns:</B><DD>a list of non-blank non-comment lines with whitespace trimmed
671 from front and back.
672<DT><B>Throws:</B>
673<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
674</DD>
675</DL>
676<HR>
677
678<A NAME="getLines(java.lang.String, java.lang.String)"><!-- --></A><H3>
679getLines</H3>
680<PRE>
681public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>getLines</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource,
682                             <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;encoding)
683                      throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
684<DL>
685<DD>Accesses a resource by name and returns the (non comment) lines containing
686 data using the given character encoding.
687
688 <p>
689 A comment line is any line that starts with the character "#"
690 </p>
691<P>
692<DD><DL>
693</DL>
694</DD>
695<DD><DL>
696<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the file to be read<DD><CODE>encoding</CODE> -
697<DT><B>Returns:</B><DD>a list of non-blank non-comment lines with whitespace trimmed
698<DT><B>Throws:</B>
699<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
700</DD>
701</DL>
702<HR>
703
704<A NAME="getLines(java.lang.String, java.nio.charset.Charset)"><!-- --></A><H3>
705getLines</H3>
706<PRE>
707public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>getLines</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;resource,
708                             <A HREF="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</A>&nbsp;charset)
709                      throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
710<DL>
711<DD><DL>
712</DL>
713</DD>
714<DD><DL>
715
716<DT><B>Throws:</B>
717<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
718</DD>
719</DL>
720<HR>
721
722<A NAME="findClass(java.lang.String, java.lang.Class, java.lang.String...)"><!-- --></A><H3>
723findClass</H3>
724<PRE>
725public &lt;T&gt; <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends T&gt; <B>findClass</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
726                                        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
727                                        <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</PRE>
728<DL>
729<DD>This method loads a class either with it's FQN or a short-name (solr.class-simplename or class-simplename).
730 It tries to load the class with the name that is given first and if it fails, it tries all the known
731 solr packages. This method caches the FQN of a short-name in a static map in-order to make subsequent lookups
732 for the same class faster. The caching is done only if the class is loaded by the webapp classloader and it
733 is loaded using a shortname.
734<P>
735<DD><DL>
736</DL>
737</DD>
738<DD><DL>
739<DT><B>Parameters:</B><DD><CODE>cname</CODE> - The name or the short name of the class.<DD><CODE>subpackages</CODE> - the packages to be tried if the cnams starts with solr.
740<DT><B>Returns:</B><DD>the loaded class. An exception is thrown if it fails</DL>
741</DD>
742</DL>
743<HR>
744
745<A NAME="newInstance(java.lang.String, java.lang.Class, java.lang.String...)"><!-- --></A><H3>
746newInstance</H3>
747<PRE>
748public &lt;T&gt; T <B>newInstance</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
749                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
750                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</PRE>
751<DL>
752<DD><DL>
753<DT><B>Specified by:</B><DD><CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true#newInstance(java.lang.String, java.lang.Class, java.lang.String...)" title="class or interface in org.apache.lucene.analysis.util">newInstance</A></CODE> in interface <CODE><A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoader.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util">ResourceLoader</A></CODE></DL>
754</DD>
755<DD><DL>
756</DL>
757</DD>
758</DL>
759<HR>
760
761<A NAME="newAdminHandlerInstance(org.apache.solr.core.CoreContainer, java.lang.String, java.lang.String...)"><!-- --></A><H3>
762newAdminHandlerInstance</H3>
763<PRE>
764public <A HREF="../../../../org/apache/solr/handler/admin/CoreAdminHandler.html" title="class in org.apache.solr.handler.admin">CoreAdminHandler</A> <B>newAdminHandlerInstance</B>(<A HREF="../../../../org/apache/solr/core/CoreContainer.html" title="class in org.apache.solr.core">CoreContainer</A>&nbsp;coreContainer,
765                                                <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cname,
766                                                <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>...&nbsp;subpackages)</PRE>
767<DL>
768<DD><DL>
769</DL>
770</DD>
771<DD><DL>
772</DL>
773</DD>
774</DL>
775<HR>
776
777<A NAME="newInstance(java.lang.String, java.lang.Class, java.lang.String[], java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>
778newInstance</H3>
779<PRE>
780public &lt;T&gt; T <B>newInstance</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;cName,
781                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;expectedType,
782                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;subPackages,
783                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>[]&nbsp;params,
784                         <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;args)</PRE>
785<DL>
786<DD><DL>
787</DL>
788</DD>
789<DD><DL>
790</DL>
791</DD>
792</DL>
793<HR>
794
795<A NAME="inform(org.apache.solr.core.SolrCore)"><!-- --></A><H3>
796inform</H3>
797<PRE>
798public void <B>inform</B>(<A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core">SolrCore</A>&nbsp;core)</PRE>
799<DL>
800<DD>Tell all <A HREF="../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin"><CODE>SolrCoreAware</CODE></A> instances about the SolrCore
801<P>
802<DD><DL>
803</DL>
804</DD>
805<DD><DL>
806</DL>
807</DD>
808</DL>
809<HR>
810
811<A NAME="inform(org.apache.solr.common.ResourceLoader)"><!-- --></A><H3>
812inform</H3>
813<PRE>
814public void <B>inform</B>(<A HREF="../../../../org/apache/solr/common/ResourceLoader.html" title="interface in org.apache.solr.common">ResourceLoader</A>&nbsp;loader)</PRE>
815<DL>
816<DD>Tell all <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//analyzers-common/org/apache/lucene/analysis/util/ResourceLoaderAware.html?is-external=true" title="class or interface in org.apache.lucene.analysis.util"><CODE>ResourceLoaderAware</CODE></A> instances about the loader
817<P>
818<DD><DL>
819</DL>
820</DD>
821<DD><DL>
822</DL>
823</DD>
824</DL>
825<HR>
826
827<A NAME="inform(java.util.Map)"><!-- --></A><H3>
828inform</H3>
829<PRE>
830public void <B>inform</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../org/apache/solr/core/SolrInfoMBean.html" title="interface in org.apache.solr.core">SolrInfoMBean</A>&gt;&nbsp;infoRegistry)</PRE>
831<DL>
832<DD>Register any <A HREF="../../../../org/apache/solr/core/SolrInfoMBean.html" title="interface in org.apache.solr.core"><CODE>SolrInfoMBean</CODE></A>s
833<P>
834<DD><DL>
835</DL>
836</DD>
837<DD><DL>
838<DT><B>Parameters:</B><DD><CODE>infoRegistry</CODE> - The Info Registry</DL>
839</DD>
840</DL>
841<HR>
842
843<A NAME="locateSolrHome()"><!-- --></A><H3>
844locateSolrHome</H3>
845<PRE>
846public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>locateSolrHome</B>()</PRE>
847<DL>
848<DD>Finds the solrhome based on looking up the value in one of three places:
849 <ol>
850  <li>JNDI: via java:comp/env/solr/home</li>
851  <li>The system property solr.solr.home</li>
852  <li>Look in the current working directory for a solr/ directory</li>
853 </ol>
854
855 The return value is normalized.  Normalization essentially means it ends in a trailing slash.
856<P>
857<DD><DL>
858</DL>
859</DD>
860<DD><DL>
861
862<DT><B>Returns:</B><DD>A normalized solrhome<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/core/SolrResourceLoader.html#normalizeDir(java.lang.String)"><CODE>normalizeDir(String)</CODE></A></DL>
863</DD>
864</DL>
865<HR>
866
867<A NAME="getInstanceDir()"><!-- --></A><H3>
868getInstanceDir</H3>
869<PRE>
870public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getInstanceDir</B>()</PRE>
871<DL>
872<DD><DL>
873</DL>
874</DD>
875<DD><DL>
876</DL>
877</DD>
878</DL>
879<!-- ========= END OF CLASS DATA ========= -->
880<HR>
881
882
883<!-- ======= START OF BOTTOM NAVBAR ====== -->
884<A NAME="navbar_bottom"><!-- --></A>
885<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
886<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
887<TR>
888<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
889<A NAME="navbar_bottom_firstrow"><!-- --></A>
890<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
891  <TR ALIGN="center" VALIGN="top">
892  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
893  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
894  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
895  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SolrResourceLoader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
896  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
897  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
898  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
899  </TR>
900</TABLE>
901</TD>
902<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
903</EM>
904</TD>
905</TR>
906
907<TR>
908<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
909&nbsp;<A HREF="../../../../org/apache/solr/core/SolrInfoMBean.Category.html" title="enum in org.apache.solr.core"><B>PREV CLASS</B></A>&nbsp;
910&nbsp;<A HREF="../../../../org/apache/solr/core/SolrXMLSerializer.html" title="class in org.apache.solr.core"><B>NEXT CLASS</B></A></FONT></TD>
911<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
912  <A HREF="../../../../index.html?org/apache/solr/core/SolrResourceLoader.html" target="_top"><B>FRAMES</B></A>  &nbsp;
913&nbsp;<A HREF="SolrResourceLoader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
914&nbsp;<SCRIPT type="text/javascript">
915  <!--
916  if(window==top) {
917    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
918  }
919  //-->
920</SCRIPT>
921<NOSCRIPT>
922  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
923</NOSCRIPT>
924
925
926</FONT></TD>
927</TR>
928<TR>
929<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
930  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
931<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
932DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
933</TR>
934</TABLE>
935<A NAME="skip-navbar_bottom"></A>
936<!-- ======== END OF BOTTOM NAVBAR ======= -->
937
938<HR>
939
940          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
941          <script src='../../../../prettify.js' type='text/javascript'></script>
942          <script type='text/javascript'>
943            (function(){
944              var oldonload = window.onload;
945              if (typeof oldonload != 'function') {
946                window.onload = prettyPrint;
947              } else {
948                window.onload = function() {
949                  oldonload();
950                  prettyPrint();
951                }
952              }
953            })();
954          </script>
955       
956</BODY>
957</HTML>
Note: See TracBrowser for help on using the repository browser.