Package org.codehaus.mojo.rmic
Class Source
- java.lang.Object
-
- org.codehaus.mojo.rmic.Source
-
- All Implemented Interfaces:
RmicConfig
public class Source extends java.lang.Object implements RmicConfig
Represents a group of class files to be processed by rmic, along with the desired options.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.SetexcludesA list of exclusions when searching for classes to compile.private java.lang.BooleanidlCreate IDL.private java.lang.BooleaniiopCreate stubs for IIOP.private static java.lang.StringINCLUDE_ALLprotected java.util.SetincludesA list of inclusions when searching for classes to compile.private java.lang.BooleankeepDo not delete intermediate generated source files.private AbstractRmiMojomojoprivate java.lang.BooleannoLocalStubsDo not create stubs optimized for same process.private java.lang.BooleannoValueMethodsDo not generate methods for valuetypes.private java.lang.BooleannowarnTurn off rmic warnings.private java.lang.BooleanpoaEnable poa generation.private java.lang.BooleanverboseEnable verbose output.private java.lang.StringversionThe version of the rmi protocol to which the stubs should be compiled.
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendIfTrue(java.lang.StringBuffer sb, boolean condition, java.lang.String option)private static java.util.HashSetcreateOneElementSet(java.lang.Object element)(package private) java.util.SetgetExcludes()(package private) java.util.SetgetIncludes()java.lang.StringgetVersion()private static booleanisEmpty(java.util.Collection collection)booleanisIdl()booleanisIiop()booleanisKeep()Keep intermediate filesbooleanisNoLocalStubs()Do not create stubs optimized for same process.booleanisNoValueMethods()Do not create methods for valuetypes.booleanisNowarn()Turn off warningsbooleanisPoa()private static booleanisSetOrDefault(java.lang.Boolean field, boolean defaultValue)booleanisVerbose()Output messages about compilation(package private) voidsetRmiMojo(AbstractRmiMojo mojo)java.lang.StringtoString()
-
-
-
Field Detail
-
INCLUDE_ALL
private static final java.lang.String INCLUDE_ALL
- See Also:
- Constant Field Values
-
mojo
private AbstractRmiMojo mojo
-
includes
protected java.util.Set includes
A list of inclusions when searching for classes to compile.
-
excludes
protected java.util.Set excludes
A list of exclusions when searching for classes to compile.
-
version
private java.lang.String version
The version of the rmi protocol to which the stubs should be compiled. Valid values include 1.1, 1.2, compat. See the rmic documentation for more information. If nothing is specified the underlying rmi compiler will choose the default value. For example, in sun jdk 1.5 the default is 1.2.
-
iiop
private java.lang.Boolean iiop
Create stubs for IIOP.
-
noLocalStubs
private java.lang.Boolean noLocalStubs
Do not create stubs optimized for same process.
-
idl
private java.lang.Boolean idl
Create IDL.
-
noValueMethods
private java.lang.Boolean noValueMethods
Do not generate methods for valuetypes.
-
keep
private java.lang.Boolean keep
Do not delete intermediate generated source files.
-
nowarn
private java.lang.Boolean nowarn
Turn off rmic warnings.
-
poa
private java.lang.Boolean poa
Enable poa generation.
-
verbose
private java.lang.Boolean verbose
Enable verbose output.
-
-
Method Detail
-
isIiop
public boolean isIiop()
- Specified by:
isIiopin interfaceRmicConfig- Returns:
- Whether iiop stubs should be generated
-
isNoLocalStubs
public boolean isNoLocalStubs()
Description copied from interface:RmicConfigDo not create stubs optimized for same process.- Specified by:
isNoLocalStubsin interfaceRmicConfig- Returns:
- true or false
-
isIdl
public boolean isIdl()
- Specified by:
isIdlin interfaceRmicConfig- Returns:
- Create IDL
-
isNoValueMethods
public boolean isNoValueMethods()
Description copied from interface:RmicConfigDo not create methods for valuetypes.- Specified by:
isNoValueMethodsin interfaceRmicConfig- Returns:
- true or false
-
isKeep
public boolean isKeep()
Description copied from interface:RmicConfigKeep intermediate files- Specified by:
isKeepin interfaceRmicConfig- Returns:
- true or false
-
isNowarn
public boolean isNowarn()
Description copied from interface:RmicConfigTurn off warnings- Specified by:
isNowarnin interfaceRmicConfig- Returns:
- true or false
-
isPoa
public boolean isPoa()
- Specified by:
isPoain interfaceRmicConfig- Returns:
- Whether skeletons should be poa-compatible should be generated
-
isVerbose
public boolean isVerbose()
Description copied from interface:RmicConfigOutput messages about compilation- Specified by:
isVerbosein interfaceRmicConfig- Returns:
- true or false
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceRmicConfig- Returns:
- The version of the compiler to use
-
isSetOrDefault
private static boolean isSetOrDefault(java.lang.Boolean field, boolean defaultValue)
-
setRmiMojo
void setRmiMojo(AbstractRmiMojo mojo)
-
getIncludes
java.util.Set getIncludes()
-
getExcludes
java.util.Set getExcludes()
-
createOneElementSet
private static java.util.HashSet createOneElementSet(java.lang.Object element)
-
isEmpty
private static boolean isEmpty(java.util.Collection collection)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
appendIfTrue
private void appendIfTrue(java.lang.StringBuffer sb, boolean condition, java.lang.String option)
-
-