org.modeshape.jcr
Class RepositoryConfiguration.Component
java.lang.Object
org.modeshape.jcr.RepositoryConfiguration.Component
- Enclosing class:
- RepositoryConfiguration
@Immutable
public class RepositoryConfiguration.Component
- extends Object
RepositoryConfiguration.Component
protected RepositoryConfiguration.Component(String name,
String classname,
String classpath,
Document document)
getName
public String getName()
- Get the component's name.
- Returns:
- the name of this component; never null
getClassname
public String getClassname()
- Returns:
- classname
getClasspath
public String getClasspath()
- Returns:
- classpath
getDocument
public Document getDocument()
- Returns:
- document
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
createInstance
public <Type> Type createInstance(ClassLoader fallbackLoader)
throws Exception
- Create an instance of this class.
- Type Parameters:
Type
- - Parameters:
fallbackLoader
- the fallback class loader that should be used for
Environment.getClassLoader(ClassLoader, String...)
- Returns:
- the new instance, with all
document fields
set on it; never null
- Throws:
Exception
- if anything fails- See Also:
getClasspath()
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.